Hide pybind11 base object from inheritance tree. Note, *bases* must be modified in place.
(app, name, obj, options, bases)
| 241 | |
| 242 | |
| 243 | def 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…