Fix several new-in-3.11 stubtest errors (#7973)

This commit is contained in:
Alex Waygood
2022-06-03 02:07:38 +01:00
committed by GitHub
parent cb9023988d
commit acc0167dc1
12 changed files with 195 additions and 85 deletions

View File

@@ -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: ...