mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
Add some defaults and __slots__ for 3.14 (#14622)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user