[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@13.58.224.40: ~ $
"""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'])

"""
from __future__ import absolute_import

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

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
__init__.py File 1.44 KB 0644
__init__.pyi File 7.02 KB 0644
_checked_types.py File 17.94 KB 0644
_field_common.py File 11.68 KB 0644
_helpers.py File 3.16 KB 0644
_immutable.py File 3.21 KB 0644
_pbag.py File 6.57 KB 0644
_pclass.py File 9.47 KB 0644
_pdeque.py File 11.92 KB 0644
_plist.py File 8.1 KB 0644
_pmap.py File 18.34 KB 0644
_precord.py File 6.87 KB 0644
_pset.py File 5.56 KB 0644
_pvector.py File 22.16 KB 0644
_toolz.py File 3.34 KB 0644
_transformations.py File 3.71 KB 0644
py.typed File 0 B 0644
typing.py File 1.73 KB 0644
typing.pyi File 10.17 KB 0644