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

Class Enum

src/cryptography/utils.py:131–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129# Python 3.10 changed representation of enums. We use well-defined object
130# representation and string representation from Python 3.9.
131class Enum(enum.Enum):
132 def __repr__(self) -> str:
133 return f"<{self.__class__.__name__}.{self._name_}: {self._value_!r}>"
134
135 def __str__(self) -> str:
136 return f"{self.__class__.__name__}.{self._name_}"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected