sphinx/tests/roots/test-ext-autodoc/target/slots.py

16 lines
296 B
Python
Raw Normal View History

class Foo:
__slots__ = ['attr']
class Bar:
__slots__ = {'attr1': 'docstring of attr1',
'attr2': 'docstring of attr2',
'attr3': None}
def __init__(self):
self.attr2 = None #: docstring of instance attr2
2020-11-21 12:06:03 -06:00
class Baz:
__slots__ = 'attr'