diff --git a/stdlib/@tests/stubtest_allowlists/common.txt b/stdlib/@tests/stubtest_allowlists/common.txt index 4110a1061..fc3a07f19 100644 --- a/stdlib/@tests/stubtest_allowlists/common.txt +++ b/stdlib/@tests/stubtest_allowlists/common.txt @@ -159,12 +159,12 @@ wave.Wave_write.initfp # sys attributes that are not always defined sys.gettotalrefcount # Available on python debug builds -sys.last_traceback -sys.last_type -sys.last_value -sys.ps1 -sys.ps2 -sys.tracebacklimit +sys.last_traceback # Available after an unhandled error has occured +sys.last_type # Available after an unhandled error has occured +sys.last_value # Available after an unhandled error has occured +sys.ps1 # Available in interactive mode +sys.ps2 # Available in interactive mode +sys.tracebacklimit # Must be set first # ========== diff --git a/stdlib/sys/__init__.pyi b/stdlib/sys/__init__.pyi index c4b1adca9..fb1e24f3e 100644 --- a/stdlib/sys/__init__.pyi +++ b/stdlib/sys/__init__.pyi @@ -73,7 +73,7 @@ if sys.version_info >= (3, 10): __stdin__: Final[TextIOWrapper | None] # Contains the original value of stdin __stdout__: Final[TextIOWrapper | None] # Contains the original value of stdout __stderr__: Final[TextIOWrapper | None] # Contains the original value of stderr -tracebacklimit: int +tracebacklimit: int | None version: str api_version: int warnoptions: Any