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
class CheckedPMap(Mapping[KT, VT_co], Hashable): pass
# PSet.add and PSet.discard have different type signatures than that of Set. class CheckedPSet(Generic[T_co], Hashable): pass
class CheckedPVector(Sequence[T_co], Hashable): pass
class PBag(Container[T_co], Iterable[T_co], Sized, Hashable): pass
class PDeque(Sequence[T_co], Hashable): pass
class PList(Sequence[T_co], Hashable): pass
class PMap(Mapping[KT, VT_co], Hashable): pass
# PSet.add and PSet.discard have different type signatures than that of Set. class PSet(Generic[T_co], Hashable): pass
class PVector(Sequence[T_co], Hashable): pass
class PVectorEvolver(Generic[T]): pass
class PMapEvolver(Generic[KT, VT]): pass
class PSetEvolver(Generic[T]): pass except ImportError: pass
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.12Bemerkung:
(vorverarbeitet am 2026-04-26)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.