Is it possible to include inherited members with the griffe
parser?
#522
-
Hello, class A:
"""Ensure inherited_members works properly."""
def func(self, a: int) -> int:
"""
Test function for inheritance.
:param a: Some parameter
:returns: Some value
"""
pass
class B(A):
"""Derived class.""" would have the documentation for However, if I pin my dependencies to be back when that thread was opened, I am able to successful include inherited members:
For reference, this was the YML file I was using: nav:
- "Home": "index.md"
plugins:
- search
- mkdocstrings:
default_handler: python
handlers:
python:
selection:
inherited_members: True
docstring_style: "restructured-text"
site_name: "Test"
theme:
name: "material" in pretty much both cases (using I just wanted to confirm that this feature isn't yet available with the newer parser, and not that I am doing something wrong. I saw this in the TODO of griffe:
which leads me to believe that it is not yet supported? Though I wasn't sure if it was in particular when multi-inheritance was being utilized. Thank you for making such an incredible tool! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello! Indeed the new handler (Griffe) does not yet support members inheritance, but I've started working on it and it shouldn't take long before it lands 🙂 Bear with me 😄 ! |
Beta Was this translation helpful? Give feedback.
Hello! Indeed the new handler (Griffe) does not yet support members inheritance, but I've started working on it and it shouldn't take long before it lands 🙂 Bear with me 😄 !