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
View File
@@ -1,10 +1,12 @@
from types import GenericAlias
from typing import Any, Generic, TypeVar
from typing_extensions import disjoint_base
_T = TypeVar("_T")
class Empty(Exception): ...
@disjoint_base
class SimpleQueue(Generic[_T]):
def __init__(self) -> None: ...
def empty(self) -> bool: ...