We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfc7fbf commit 9365da7Copy full SHA for 9365da7
cmd2/argtypes.py
@@ -91,7 +91,7 @@ def __repr__(self) -> str:
91
"""Will be printed as the 'argument type' to user on syntax or range error."""
92
return f"IntSet{self.range_str}"
93
94
- def __call__(self, arg: str) -> Iterable:
+ def __call__(self, arg: str) -> Iterable[int]:
95
"""Parse a string into an iterable returning ints."""
96
if arg == 'all':
97
return range(self.bottom, self.top)
0 commit comments