mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Update sys.exit and SystemExit.code to have the same types (#8554)
This commit is contained in:
@@ -1279,7 +1279,7 @@ else:
|
||||
__locals: Mapping[str, object] | None = ...,
|
||||
) -> None: ...
|
||||
|
||||
def exit(code: object = ...) -> NoReturn: ...
|
||||
def exit(code: sys._ExitCode = ...) -> NoReturn: ...
|
||||
|
||||
class filter(Iterator[_T], Generic[_T]):
|
||||
@overload
|
||||
@@ -1616,7 +1616,7 @@ else:
|
||||
@overload
|
||||
def pow(__base: _SupportsSomeKindOfPow, __exp: complex, __mod: None = ...) -> complex: ...
|
||||
|
||||
def quit(code: object = ...) -> NoReturn: ...
|
||||
def quit(code: sys._ExitCode = ...) -> NoReturn: ...
|
||||
|
||||
class reversed(Iterator[_T], Generic[_T]):
|
||||
@overload
|
||||
@@ -1794,7 +1794,7 @@ class GeneratorExit(BaseException): ...
|
||||
class KeyboardInterrupt(BaseException): ...
|
||||
|
||||
class SystemExit(BaseException):
|
||||
code: int
|
||||
code: sys._ExitCode
|
||||
|
||||
class Exception(BaseException): ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user