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

Method __getattr__

src/cryptography/utils.py:70–75  ·  view source on GitHub ↗
(self, attr: str)

Source from the content-addressed store, hash-verified

68 self.__dict__["_module"] = module
69
70 def __getattr__(self, attr: str) -> object:
71 obj = getattr(self._module, attr)
72 if isinstance(obj, _DeprecatedValue):
73 warnings.warn(obj.message, obj.warning_class, stacklevel=2)
74 obj = obj.value
75 return obj
76
77 def __setattr__(self, attr: str, value: object) -> None:
78 setattr(self._module, attr, value)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected