MCPcopy Create free account
hub / github.com/pyca/cryptography / Enum

Class Enum

src/cryptography/utils.py:125–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123# Python 3.10 changed representation of enums. We use well-defined object
124# representation and string representation from Python 3.9.
125class Enum(enum.Enum):
126 def __repr__(self) -> str:
127 return f"<{self.__class__.__name__}.{self._name_}: {self._value_!r}>"
128
129 def __str__(self) -> str:
130 return f"{self.__class__.__name__}.{self._name_}"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected