changeset 50219:829aa604d71a

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.
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 21 Feb 2023 13:26:07 -0500
parents 0ab92dabea6e
children 02fe65f74be5
files mercurial/pycompat.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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))