MCPcopy Index your code
hub / github.com/RustPython/RustPython / __getattr__

Method __getattr__

Lib/unittest/mock.py:330–334  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

328 self._sentinels = {}
329
330 def __getattr__(self, name):
331 if name == '__bases__':
332 # Without this help(unittest.mock) raises an exception
333 raise AttributeError
334 return self._sentinels.setdefault(name, _SentinelObject(name))
335
336 def __reduce__(self):
337 return 'sentinel'

Callers

nothing calls this directly

Calls 2

_SentinelObjectClass · 0.85
setdefaultMethod · 0.45

Tested by

no test coverage detected