Add some defaults and __slots__ for 3.14 (#14622)

This commit is contained in:
Jelle Zijlstra
2025-08-22 09:51:00 -07:00
committed by GitHub
parent 94b1880444
commit b6e21d05ae
7 changed files with 26 additions and 4 deletions
@@ -12,6 +12,7 @@ if sys.version_info >= (3, 13): # needed to satisfy pyright checks for Python <
classonly = classmethod
class UnboundItem:
__slots__ = ()
def __new__(cls) -> Never: ...
@classonly
def singleton(cls, kind: str, module: str, name: str = "UNBOUND") -> Self: ...
+2 -2
View File
@@ -51,8 +51,8 @@ if sys.version_info >= (3, 13): # needed to satisfy pyright checks for Python <
timeout: SupportsIndex | None = None,
*,
unbounditems: _AnyUnbound | None = None,
_delay: float = ...,
_delay: float = 0.01,
) -> None: ...
def put_nowait(self, obj: object, *, unbounditems: _AnyUnbound | None = None) -> None: ...
def get(self, timeout: SupportsIndex | None = None, *, _delay: float = ...) -> object: ...
def get(self, timeout: SupportsIndex | None = None, *, _delay: float = 0.01) -> object: ...
def get_nowait(self) -> object: ...