You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently, griffe checks Class.members, when fetching Class.parameters. When the __init__ is inherited from the parent class, this means that an empty set of parameters gets returned.
Describe the solution you'd like
WDYT of checking in Class.inherited_members as well, in order to get parameters for classes that don't override __init__?
Yep, good idea! We can check both at once using Class.all_members 🙂 Feel free to send a PR, otherwise I'll get to it soon (it's an easy change, shouldn't take long).
Activity
pawamoy commentedon Aug 28, 2023
Yep, good idea! We can check both at once using
Class.all_members🙂 Feel free to send a PR, otherwise I'll get to it soon (it's an easy change, shouldn't take long).pawamoy commentedon Aug 28, 2023
(by the way, I think mkdocstrings-python also checks only in members for
__init__when merging docstring, will open an issue there tomorrow)feat: Get class parameters from parent's `__init__` method