mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #8534: autoattribute failed to document a commented attribute in alias class
So far, autoattribute uses "given class name" to fetch comments of uninitialized instance attributes. But pycode expects to use "real" class name on searching attribute comments. This adds UninitializedInstanceAttributeMixin to handle it simply.
This commit is contained in:
@@ -29,3 +29,6 @@ class Class:
|
||||
|
||||
class Derived(Class):
|
||||
attr7: int
|
||||
|
||||
|
||||
Alias = Class
|
||||
|
||||
Reference in New Issue
Block a user