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

Function _check_class

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

Source from the content-addressed store, hash-verified

1684
1685
1686def _check_class(klass, attr):
1687 for entry in _static_getmro(klass):
1688 if _shadowed_dict(type(entry)) is _sentinel and attr in entry.__dict__:
1689 return entry.__dict__[attr]
1690 return _sentinel
1691
1692
1693@functools.lru_cache()

Callers 1

getattr_staticFunction · 0.85

Calls 1

_shadowed_dictFunction · 0.85

Tested by

no test coverage detected