MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _descriptor_get

Function _descriptor_get

tools/python-3.11.9-amd64/Lib/inspect.py:2426–2432  ·  view source on GitHub ↗
(descriptor, obj)

Source from the content-addressed store, hash-verified

2424
2425
2426def _descriptor_get(descriptor, obj):
2427 if isclass(descriptor):
2428 return descriptor
2429 get = getattr(type(descriptor), '__get__', _sentinel)
2430 if get is _sentinel:
2431 return descriptor
2432 return get(descriptor, obj, type(obj))
2433
2434
2435def _signature_from_callable(obj, *,

Callers 2

_signature_from_callableFunction · 0.85

Calls 3

isclassFunction · 0.85
getFunction · 0.70
typeClass · 0.50

Tested by

no test coverage detected