Files
openide/python/testData/stubs/AttrsKwOnlyOnClass.py
Semyon Proshev 1efa876ad0 Support kw_only in attr.s (PY-34374)
GitOrigin-RevId: a8e78103f3373c967cd429b21e0ced0d530b468d
2019-12-04 12:33:00 +00:00

10 lines
184 B
Python

import attr
@attr.s(kw_only=True)
class Foo1:
bar = attr.ib(type=str)
@attr.s(kw_only=False)
class Foo2:
bar = attr.ib(type=str)
@attr.s
class Foo3:
bar = attr.ib(type=str)