2019-05-21 12:20:46 -05:00
|
|
|
class Foo:
|
2020-12-16 12:31:45 -06:00
|
|
|
"""docstring"""
|
|
|
|
|
2019-05-21 12:20:46 -05:00
|
|
|
__slots__ = ['attr']
|
|
|
|
|
|
|
|
|
|
|
|
class Bar:
|
2020-12-16 12:31:45 -06:00
|
|
|
"""docstring"""
|
|
|
|
|
2025-01-02 19:09:26 -06:00
|
|
|
__slots__ = {
|
|
|
|
'attr1': 'docstring of attr1',
|
|
|
|
'attr2': 'docstring of attr2',
|
|
|
|
'attr3': None,
|
|
|
|
}
|
2021-10-23 00:59:36 -05:00
|
|
|
__annotations__ = {'attr1': int}
|
2019-05-21 12:20:46 -05:00
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
self.attr2 = None #: docstring of instance attr2
|
2020-11-21 12:06:03 -06:00
|
|
|
|
|
|
|
|
|
|
|
class Baz:
|
2020-12-16 12:31:45 -06:00
|
|
|
"""docstring"""
|
|
|
|
|
2025-01-02 19:09:26 -06:00
|
|
|
__slots__ = 'attr' # NoQA: PLC0205
|