mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Autoattribute directive should check the existence of instance attribute that is defined inside __init__() but not having comments before accessing it.
12 lines
279 B
Python
12 lines
279 B
Python
class Foo:
|
|
def __init__(self):
|
|
self.attr1 = None #: docstring foo
|
|
self.attr2 = None #: docstring foo
|
|
|
|
|
|
class Bar(Foo):
|
|
def __init__(self):
|
|
self.attr2 = None #: docstring bar
|
|
self.attr3 = None #: docstring bar
|
|
self.attr4 = None
|