Viewing File: /opt/imunify360/venv/lib/python3.11/site-packages/pyrsistent/__pycache__/_pmap.cpython-311.pyc
]j]I d dl mZmZ d dlmZ d dlmZ d dlmZ G d d Z G d de Z
G d d
e Z G d de Z
ej e
ej e
d
Z ei d Zi d fdZd ZdS ) )MappingHashable)chain)pvector transformc * e Zd ZdZd Zd Zd Zd ZdS )PMapViewa View type for the persistent map/dict type `PMap`.
Provides an equivalent of Python's built-in `dict_values` and `dict_items`
types that result from expreessions such as `{}.values()` and
`{}.items()`. The equivalent for `{}.keys()` is absent because the keys are
instead represented by a `PSet` object, which can be created in `O(1)` time.
The `PMapView` class is overloaded by the `PMapValues` and `PMapItems`
classes which handle the specific case of values and items, respectively
Parameters
----------
m : mapping
The mapping/dict-like object of which a view is to be created. This
should generally be a `PMap` object.
c t |t s4t |t rt | }nt d t
| d| d S )Nz"PViewMap requires a Mapping object_map)
isinstancePMapr pmap TypeErrorobject__setattr__)selfms p/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib/python3.11/site-packages/pyrsistent/_pmap.py__init__zPMapView.__init__ sb !T""