sphinx/tests/roots/test-ext-autodoc/target/uninitialized_attributes.py
Takeshi KOMIYA 6d8c9183fa Fix #8800: autodoc: Uninitialized attributes in superclass are recognized as undocumented
Unintentionally, uninitialized attributes defined at superclasses are
recognized as undocumented in the filtering step.  Therefore, they are
filtered if `:undoc-members:` option given.
2021-02-01 21:06:07 +09:00

9 lines
123 B
Python

class Base:
attr1: int #: docstring
attr2: str
class Derived(Base):
attr3: int #: docstring
attr4: str