MCPcopy Create free account
hub / github.com/rthalley/dnspython / _missing_

Method _missing_

dns/enum.py:26–31  ·  view source on GitHub ↗
(cls, value)

Source from the content-addressed store, hash-verified

24class IntEnum(enum.IntEnum):
25 @classmethod
26 def _missing_(cls, value):
27 cls._check_value(value)
28 val = int.__new__(cls, value) # pyright: ignore
29 val._name_ = cls._extra_to_text(value, None) or f"{cls._prefix()}{value}"
30 val._value_ = value # pyright: ignore
31 return val
32
33 @classmethod
34 def _check_value(cls, value):

Callers

nothing calls this directly

Calls 3

_check_valueMethod · 0.80
_extra_to_textMethod · 0.45
_prefixMethod · 0.45

Tested by

no test coverage detected