mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Fix quit's argument and return types to match those of exit. (#2915)
Fixes #2912.
This commit is contained in:
committed by
Sebastian Rittau
parent
c85fed8d98
commit
4230e6f313
@@ -1134,7 +1134,7 @@ if sys.version_info >= (3,):
|
||||
def exec(object: Union[str, bytes, CodeType], globals: Optional[Dict[str, Any]] = ..., locals: Optional[Mapping[str, Any]] = ...) -> Any: ...
|
||||
else:
|
||||
def execfile(filename: str, globals: Optional[Dict[str, Any]] = ..., locals: Optional[Dict[str, Any]] = ...) -> None: ...
|
||||
def exit(code: Any = ...) -> NoReturn: ...
|
||||
def exit(code: object = ...) -> NoReturn: ...
|
||||
if sys.version_info >= (3,):
|
||||
@overload
|
||||
def filter(__function: None, __iterable: Iterable[Optional[_T]]) -> Iterator[_T]: ...
|
||||
@@ -1337,7 +1337,7 @@ def pow(x: int, y: int, z: int) -> Any: ...
|
||||
def pow(x: float, y: float) -> float: ...
|
||||
@overload
|
||||
def pow(x: float, y: float, z: float) -> float: ...
|
||||
def quit(code: Optional[int] = ...) -> None: ...
|
||||
def quit(code: object = ...) -> NoReturn: ...
|
||||
if sys.version_info < (3,):
|
||||
def range(x: int, y: int = ..., step: int = ...) -> List[int]: ...
|
||||
def raw_input(prompt: Any = ...) -> str: ...
|
||||
|
||||
@@ -1134,7 +1134,7 @@ if sys.version_info >= (3,):
|
||||
def exec(object: Union[str, bytes, CodeType], globals: Optional[Dict[str, Any]] = ..., locals: Optional[Mapping[str, Any]] = ...) -> Any: ...
|
||||
else:
|
||||
def execfile(filename: str, globals: Optional[Dict[str, Any]] = ..., locals: Optional[Dict[str, Any]] = ...) -> None: ...
|
||||
def exit(code: Any = ...) -> NoReturn: ...
|
||||
def exit(code: object = ...) -> NoReturn: ...
|
||||
if sys.version_info >= (3,):
|
||||
@overload
|
||||
def filter(__function: None, __iterable: Iterable[Optional[_T]]) -> Iterator[_T]: ...
|
||||
@@ -1337,7 +1337,7 @@ def pow(x: int, y: int, z: int) -> Any: ...
|
||||
def pow(x: float, y: float) -> float: ...
|
||||
@overload
|
||||
def pow(x: float, y: float, z: float) -> float: ...
|
||||
def quit(code: Optional[int] = ...) -> None: ...
|
||||
def quit(code: object = ...) -> NoReturn: ...
|
||||
if sys.version_info < (3,):
|
||||
def range(x: int, y: int = ..., step: int = ...) -> List[int]: ...
|
||||
def raw_input(prompt: Any = ...) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user