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

Function _findclass

tools/python-3.11.9-amd64/Lib/pydoc.py:94–102  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

92 return dirs
93
94def _findclass(func):
95 cls = sys.modules.get(func.__module__)
96 if cls is None:
97 return None
98 for name in func.__qualname__.split('.')[:-1]:
99 cls = getattr(cls, name)
100 if not inspect.isclass(cls):
101 return None
102 return cls
103
104def _finddoc(obj):
105 if inspect.ismethod(obj):

Callers 1

_finddocFunction · 0.70

Calls 2

getMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected