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
{{ message }}
Repository navigation
autosummary templates have too little context for class members: attributes vs properties, abstract methods, etc… #14264
Is your feature request related to a problem? Please describe.
In an ideal world, I’d document properties using .. autoproperty:: and attributes using .. autoattribute::, as this way, their types are displayed correctly.
I can document properties using .. autoattribute::, but I can’t document attributes using .. autoproperty:: as that would crash with
AttributeError: type object 'Bar' has no attribute 'foo'
And since autosummary’s lists of strings that it passes to templates doesn’t have information about member objtypes, I can’t distinguish between the two.
Describe the solution you'd like
Replace the multitude of member lists passed to the class template with a single list of objects that contain all relevant information:
Describe alternatives you've considered
Add more lists to the template like property_members, abstract_members, …, so we can use that in {% if item in property_members %}
changed the title [-]allow distinguishing attributes and properties in autosummary templates[/-][+]autosummary templates have too little context for class members: attributes vs properties, abstract methods, etc…[/+]on Jan 16, 2026
Activity
[-]allow distinguishing attributes and properties in autosummary templates[/-][+]autosummary templates have too little context for class members: attributes vs properties, abstract methods, etc…[/+]