def __init__(self, key, # type: str value, # type: int context=None, # type: Optional[Type[ASN1_Class]] codec=None # type: Optional[Dict[ASN1Codec, Type[BERcodec_Object[Any]]]] # noqa: E501 ): # type: (...) -> None EnumElement.__init__(self, key, value) # populated by the metaclass self.context = context # type: Type[ASN1_Class] # type: ignore if codec is None: codec = {} self._codec = codec
def __init__(self, key, value, context=None, codec=None): EnumElement.__init__(self, key, value) self._context = context if codec == None: codec = {} self._codec = codec