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
Sometimes you have a class / data class that has a lot of attributes (e.g. to store configuration of something)
You end up with a long list of attributes which also show up in the ToC and clutter the documentation:
With summary = true, you can get a nice table which is much denser but IMO also easier to digest:
However, there are two problems:
As far as I can tell, you cannot hide the individual listings of the attributes and only keep the summary table.
The summary table is missing the default value if it exits.
What I am looking for is for classes to render very similar to how functions are handled:
a table of attributes with default values just like the table of parameters of a function
no individual listing of attributes (same as how you can avoid that for functions with parameter_headings = False)
Sometimes you have a class / data class that has a lot of attributes (e.g. to store configuration of something)
You end up with a long list of attributes which also show up in the ToC and clutter the documentation:
With
summary = true
, you can get a nice table which is much denser but IMO also easier to digest:However, there are two problems:
What I am looking for is for classes to render very similar to how functions are handled:
__init__()
to clearly show the user how to create an instance of the class (see feature: support for __init__() of pedantic/attrs classes #234)The text was updated successfully, but these errors were encountered: