/snap/core20/2769/usr/lib/python3/dist-packages/pyrsistent
NameSizeModeActions
__pycache__/-0755rm
py.typed00644editdlrm
typing.py17280644editdlrm
typing.pyi103850644editdlrm
_checked_types.py183580644editdlrm
_compat.py5210644editdlrm
_field_common.py114520644editdlrm
_helpers.py24750644editdlrm
_immutable.py35590644editdlrm
_pbag.py67540644editdlrm
_pclass.py97220644editdlrm
_pdeque.py121840644editdlrm
_plist.py82820644editdlrm
_pmap.py146430644editdlrm
_precord.py70190644editdlrm
_pset.py57180644editdlrm
_pvector.py227150644editdlrm
_toolz.py34270644editdlrm
_transformations.py39100644editdlrm
__init__.py14790644editdlrm
__init__.pyi72530644editdlrm
Edit: /snap/core20/2769/usr/lib/python3/dist-packages/pyrsistent/typing.py (1728B)
"""Helpers for use with type annotation. Use the empty classes in this module when annotating the types of Pyrsistent objects, instead of using the actual collection class. For example, from pyrsistent import pvector from pyrsistent.typing import PVector myvector: PVector[str] = pvector(['a', 'b', 'c']) """ try: from typing import Container from typing import Hashable from typing import Generic from typing import Iterable from typing import Mapping from typing import Sequence from typing import Sized from typing import TypeVar __all__ = [ 'CheckedPMap', 'CheckedPSet', 'CheckedPVector', 'PBag', 'PDeque', 'PList', 'PMap', 'PSet', 'PVector', ] T = TypeVar('T') KT = TypeVar('KT') VT = TypeVar('VT') class CheckedPMap(Mapping[KT, VT], Hashable): pass # PSet.add and PSet.discard have different type signatures than that of Set. class CheckedPSet(Generic[T], Hashable): pass class CheckedPVector(Sequence[T], Hashable): pass class PBag(Container[T], Iterable[T], Sized, Hashable): pass class PDeque(Sequence[T], Hashable): pass class PList(Sequence[T], Hashable): pass class PMap(Mapping[KT, VT], Hashable): pass # PSet.add and PSet.discard have different type signatures than that of Set. class PSet(Generic[T], Hashable): pass class PVector(Sequence[T], Hashable): pass class PVectorEvolver(Generic[T]): pass class PMapEvolver(Generic[KT, VT]): pass class PSetEvolver(Generic[T]): pass except ImportError: pass