mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 04:50:58 +07:00
Also fix PY-55231 Add declarationElement field to callable parameter to resolve parameters to class fields in dataclasses GitOrigin-RevId: ae2703b958061df6f2d74b19920a6e3be2a084f6
11 lines
73 B
Python
11 lines
73 B
Python
import attr
|
|
|
|
|
|
@attr.s
|
|
class C:
|
|
y = attr.ib()
|
|
|
|
|
|
c = C(y=3)
|
|
print(c.y)
|