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

Function _check_instance

Lib/inspect.py:1677–1683  ·  view source on GitHub ↗
(obj, attr)

Source from the content-addressed store, hash-verified

1675
1676
1677def _check_instance(obj, attr):
1678 instance_dict = {}
1679 try:
1680 instance_dict = object.__getattribute__(obj, "__dict__")
1681 except AttributeError:
1682 pass
1683 return dict.get(instance_dict, attr, _sentinel)
1684
1685
1686def _check_class(klass, attr):

Callers 1

getattr_staticFunction · 0.85

Calls 2

__getattribute__Method · 0.45
getMethod · 0.45

Tested by

no test coverage detected