Add @disjoint_base decorator in the stdlib (#14599)

And fix some other new stubtest finds.
This commit is contained in:
Jelle Zijlstra
2025-08-24 07:27:14 -07:00
committed by GitHub
parent 2565f34946
commit e8ba06f710
55 changed files with 701 additions and 307 deletions
+2 -1
View File
@@ -5,7 +5,7 @@ from collections.abc import Callable
from threading import Thread
from types import TracebackType
from typing import Any, Final, NoReturn, final, overload
from typing_extensions import TypeVarTuple, Unpack
from typing_extensions import TypeVarTuple, Unpack, disjoint_base
_Ts = TypeVarTuple("_Ts")
@@ -110,6 +110,7 @@ if sys.version_info >= (3, 12):
if sys.version_info >= (3, 14):
def set_name(name: str) -> None: ...
@disjoint_base
class _local:
def __getattribute__(self, name: str, /) -> Any: ...
def __setattr__(self, name: str, value: Any, /) -> None: ...