mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 14:01:55 +08:00
exit function takes argument of any type. (#1116)
The type annotations for exit were incorrectly limited to int in two places; the others that I looked at are already correct.
This commit is contained in:
committed by
Guido van Rossum
parent
84371e812c
commit
7c413c904d
@@ -713,7 +713,7 @@ def dir(o: object = ...) -> List[str]: ...
|
||||
def divmod(a: int, b: int) -> Tuple[int, int]: ...
|
||||
@overload
|
||||
def divmod(a: float, b: float) -> Tuple[float, float]: ...
|
||||
def exit(code: int = ...) -> NoReturn: ...
|
||||
def exit(code: Any = ...) -> NoReturn: ...
|
||||
@overload
|
||||
def filter(function: Callable[[_T], Any],
|
||||
iterable: Iterable[_T]) -> List[_T]: ...
|
||||
|
||||
Reference in New Issue
Block a user