hm\!(dgZGddeZdS)OpenTypecTeZdZdZd dZedZdZdZdZ dZ d Z d Z dS) raCreate ASN.1 type map indexed by a value The *OpenType* object models an untyped field of a constructed ASN.1 type. In ASN.1 syntax it is usually represented by the `ANY DEFINED BY` for scalars or `SET OF ANY DEFINED BY`, `SEQUENCE OF ANY DEFINED BY` for container types clauses. Typically used together with :class:`~pyasn1.type.univ.Any` object. OpenType objects duck-type a read-only Python :class:`dict` objects, however the passed `typeMap` is not copied, but stored by reference. That means the user can manipulate `typeMap` at run time having this reflected on *OpenType* object behavior. The |OpenType| class models an untyped field of a constructed ASN.1 type. In ASN.1 syntax it is usually represented by the `ANY DEFINED BY` for scalars or `SET OF ANY DEFINED BY`, `SEQUENCE OF ANY DEFINED BY` for container types clauses. Typically used with :class:`~pyasn1.type.univ.Any` type. Parameters ---------- name: :py:class:`str` Field name typeMap: :py:class:`dict` A map of value->ASN.1 type. It's stored by reference and can be mutated later to register new mappings. Examples -------- For untyped scalars: .. code-block:: python openType = OpenType( 'id', {1: Integer(), 2: OctetString()} ) Sequence( componentType=NamedTypes( NamedType('id', Integer()), NamedType('blob', Any(), openType=openType) ) ) For untyped `SET OF` or `SEQUENCE OF` vectors: .. code-block:: python openType = OpenType( 'id', {1: Integer(), 2: OctetString()} ) Sequence( componentType=NamedTypes( NamedType('id', Integer()), NamedType('blob', SetOf(componentType=Any()), openType=openType) ) ) Nc8||_| i|_dS||_dSN)_OpenType__name_OpenType__typeMap)selfnametypeMaps t/builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib/python3.11/site-packages/pyasn1/type/opentype.py__init__zOpenType.__init__Ks$ ?DNNN$DNNNc|jSr)rrs r r z OpenType.nameRs {r c4|jSr)rvaluesrs r rzOpenType.valuesXs~$$&&&r c4|jSr)rkeysrs r rz OpenType.keys[s~""$$$r c4|jSr)ritemsrs r rzOpenType.items^s~##%%%r c||jvSrrrkeys r __contains__zOpenType.__contains__asdn$$r c|j|Srrrs r __getitem__zOpenType.__getitem__ds~c""r c*t|jSr)iterrrs r __iter__zOpenType.__iter__gsDN###r r) __name__ __module__ __qualname____doc__r propertyr rrrrrrr r rr s==~%%%%X '''%%%&&&%%%###$$$$$r N)__all__objectrr%r r r(sL ,]$]$]$]$]$v]$]$]$]$]$r