# HG changeset patch # User Matt Harbison # Date 1677003967 18000 # Node ID 829aa604d71a4bf10fe1637ad597e62e0995bd3d # Parent 0ab92dabea6ec7d068fb69acf2ffbdfb6b80ef3b 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. diff -r 0ab92dabea6e -r 829aa604d71a 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))