MCPcopy
hub / github.com/sphinx-doc/sphinx / _special_getattr

Function _special_getattr

tests/test_ext_autodoc/test_ext_autodoc.py:171–175  ·  view source on GitHub ↗
(obj, attr_name, *defargs)

Source from the content-addressed store, hash-verified

169 attrs = []
170
171 def _special_getattr(obj, attr_name, *defargs):
172 if attr_name in attrs:
173 getattr_spy.append((obj, attr_name))
174 return None
175 return getattr(obj, attr_name, *defargs)
176
177 # See Sphinx.add_autodoc_attrgetter()
178 autodoc_attrgetters = {type: _special_getattr}

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…