Files
openide/python/testData/paramInfo/InitializingAttrsKwOnlyOnDerivedClass.py
Irina Fediaeva cbac1efb4c PY-49946: Mark errors in non-working test cases and mute them
GitOrigin-RevId: 4ca439c05c9325646f191073b9cba58988b8d161
2023-04-12 17:59:48 +00:00

45 lines
630 B
Python

import attr
@attr.s
class Base1:
a = attr.ib(type=int)
@attr.s(kw_only=True)
class Derived1(Base1):
b = attr.ib(type=int)
Derived1(<arg1>)
@attr.s
class Base2:
a = attr.ib(type=int)
@attr.s(kw_only=True)
class Derived2(Base2):
b = attr.ib(type=int, default=1)
Derived2(<arg2>) # non-working case
@attr.s
class Base3:
a = attr.ib(type=int, default=1)
@attr.s(kw_only=True)
class Derived3(Base3):
b = attr.ib(type=int)
Derived3(<arg3>)
@attr.s
class Base4:
a = attr.ib(type=int, default=1)
@attr.s(kw_only=True)
class Derived4(Base4):
b = attr.ib(type=int, default=1)
Derived4(<arg4>)