-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dataclasses syntax #58
Comments
I don't disagree 🙂 I'll have to see if there are special cases to handle though. @dataclass
class Foo:
"""blabla
Parameters:
bar: documentation for bar
"""
bar: str |
Hi, What is your opinion about supporting not just That will cover at least dataclasses, attrs and pydantic objects |
I'd have to read the PEP more carefully, but once we get inheritance working it should be possible yes. |
You might be interested in this Griffe extension: https://github.com/tlambert03/griffe-fieldz |
Griffe recently added much better support for dataclasses, this should be fixed. |
Describe the bug
Here bar is recognized by mkdocstring-python as a class-variable, it should parsed like arguments
Screenshots
While this is what I would expect:
Note that when implementing this any library that uses PEP 681 should treated the same
The text was updated successfully, but these errors were encountered: