MCPcopy Index your code
hub / github.com/python/cpython / _check_class

Function _check_class

Lib/inspect.py:1710–1714  ·  view source on GitHub ↗
(klass, attr)

Source from the content-addressed store, hash-verified

1708
1709
1710def _check_class(klass, attr):
1711 for entry in _static_getmro(klass):
1712 if _shadowed_dict(type(entry)) is _sentinel and attr in entry.__dict__:
1713 return entry.__dict__[attr]
1714 return _sentinel
1715
1716
1717@functools.lru_cache()

Callers 1

getattr_staticFunction · 0.85

Calls 1

_shadowed_dictFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…