mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 13:20:56 +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
80 B
Python
11 lines
80 B
Python
import attr
|
|
|
|
|
|
@attr.s
|
|
class C:
|
|
x = attr.ib()
|
|
|
|
|
|
c = C(x<caret>=3)
|
|
print(c.x)
|