mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Fix several new-in-3.11 stubtest errors (#7973)
This commit is contained in:
@@ -221,6 +221,9 @@ def __displayhook__(__value: object) -> None: ...
|
||||
def __excepthook__(__exctype: type[BaseException], __value: BaseException, __traceback: TracebackType | None) -> None: ...
|
||||
def exc_info() -> OptExcInfo: ...
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
def exception() -> BaseException | None: ...
|
||||
|
||||
# sys.exit() accepts an optional argument of anything printable
|
||||
def exit(__status: object = ...) -> NoReturn: ...
|
||||
def getallocatedblocks() -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user