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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
410 B
Python
Raw Normal View History

class Foo:
"""docstring"""
__slots__ = ['attr']
class Bar:
"""docstring"""
2025-01-02 19:09:26 -06:00
__slots__ = {
'attr1': 'docstring of attr1',
'attr2': 'docstring of attr2',
'attr3': None,
}
__annotations__ = {'attr1': int}
def __init__(self):
self.attr2 = None #: docstring of instance attr2
2020-11-21 12:06:03 -06:00
class Baz:
"""docstring"""
2025-01-02 19:09:26 -06:00
__slots__ = 'attr' # NoQA: PLC0205