Skip to content

Commit 9365da7

Browse files
committed
from PR feedback: improve type info
1 parent dfc7fbf commit 9365da7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd2/argtypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __repr__(self) -> str:
9191
"""Will be printed as the 'argument type' to user on syntax or range error."""
9292
return f"IntSet{self.range_str}"
9393

94-
def __call__(self, arg: str) -> Iterable:
94+
def __call__(self, arg: str) -> Iterable[int]:
9595
"""Parse a string into an iterable returning ints."""
9696
if arg == 'all':
9797
return range(self.bottom, self.top)

0 commit comments

Comments
 (0)