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

34 lines
442 B
Python

import attr
@attr.s
class Base1:
a = attr.ib(type=int)
@attr.s(kw_only=True)
class Derived1(Base1):
a = attr.ib(type=int)
Derived1(<arg1>)
@attr.s(kw_only=True)
class Base2:
a = attr.ib(type=int)
@attr.s
class Derived2(Base2):
a = attr.ib(type=int)
Derived2(<arg2>)
@attr.s(kw_only=True)
class Base3:
a = attr.ib(type=int)
@attr.s(kw_only=True)
class Derived3(Base3):
a = attr.ib(type=int)
Derived3(<arg3>)