Files
dash-api/lib/python3.11/site-packages/pytz-stubs/lazy.pyi

21 lines
614 B
Python
Raw Normal View History

2025-09-07 22:09:54 +02:00
from collections.abc import Iterator, Mapping as DictMixin
from typing import TypeVar
_T = TypeVar("_T")
_VT = TypeVar("_VT")
class LazyDict(DictMixin[str, _VT]):
data: dict[str, _VT] | None
def __getitem__(self, key: str) -> _VT: ...
def __contains__(self, key: object) -> bool: ...
def __iter__(self) -> Iterator[str]: ...
def __len__(self) -> int: ...
class LazyList(list[_T]):
# does not return `Self` type:
def __new__(cls, fill_iter=None) -> LazyList[_T]: ...
class LazySet(set[_T]):
# does not return `Self` type:
def __new__(cls, fill_iter=None) -> LazySet[_T]: ...