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

Function _descriptor_get

Lib/inspect.py:2404–2410  ·  view source on GitHub ↗
(descriptor, obj)

Source from the content-addressed store, hash-verified

2402
2403
2404def _descriptor_get(descriptor, obj):
2405 if isclass(descriptor):
2406 return descriptor
2407 get = getattr(type(descriptor), '__get__', _sentinel)
2408 if get is _sentinel:
2409 return descriptor
2410 return get(descriptor, obj, type(obj))
2411
2412
2413def _signature_from_callable(obj, *,

Callers 2

_signature_from_callableFunction · 0.85

Calls 3

isclassFunction · 0.85
getattrFunction · 0.85
getFunction · 0.85

Tested by

no test coverage detected