MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / autodoc_process_bases

Function autodoc_process_bases

doc/conf.py:243–253  ·  view source on GitHub ↗

Hide pybind11 base object from inheritance tree. Note, *bases* must be modified in place.

(app, name, obj, options, bases)

Source from the content-addressed store, hash-verified

241
242
243def autodoc_process_bases(app, name, obj, options, bases):
244 """
245 Hide pybind11 base object from inheritance tree.
246
247 Note, *bases* must be modified in place.
248 """
249 for cls in bases[:]:
250 if not isinstance(cls, type):
251 continue
252 if cls.__module__ == 'pybind11_builtins' and cls.__name__ == 'pybind11_object':
253 bases.remove(cls)
254
255
256# make sure to ignore warnings that stem from simply inspecting deprecated

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…