typing: add the return type hint to pycompat.rangelist()
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 21 Feb 2023 13:26:07 -0500
changeset 50176 829aa604d71a
parent 50175 0ab92dabea6e
child 50181 02fe65f74be5
typing: add the return type hint to pycompat.rangelist() Not bothering with the args, because there are a few overloads and only 2 callers in the codebase, one of which is a test.
mercurial/pycompat.py
--- a/mercurial/pycompat.py	Tue Feb 21 13:24:12 2023 -0500
+++ b/mercurial/pycompat.py	Tue Feb 21 13:26:07 2023 -0500
@@ -149,7 +149,7 @@
     return list(map(f, *args))
 
 
-def rangelist(*args):
+def rangelist(*args) -> List[int]:
     return list(range(*args))