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

Function _descriptor_get

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

Source from the content-addressed store, hash-verified

2408
2409
2410def _descriptor_get(descriptor, obj):
2411 if isclass(descriptor):
2412 return descriptor
2413 get = getattr(type(descriptor), '__get__', _sentinel)
2414 if get is _sentinel:
2415 return descriptor
2416 return get(descriptor, obj, type(obj))
2417
2418
2419def _signature_from_callable(obj, *,

Callers 3

_lookup_specialFunction · 0.90
_signature_from_callableFunction · 0.85

Calls 2

isclassFunction · 0.85
getFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…