Files
openide/python/testData/paramInfo/DecoratedDataClassParameters.py
andrey.matveev 52f21cc60d PY-48338 PY-60104 Make decorators pure functions if not annotated
GitOrigin-RevId: fed5c22c9114a5dcfb882be367c570baf8ba3e5a
2024-01-09 20:49:13 +00:00

19 lines
194 B
Python

from dataclasses import dataclass
def new_init(self, bar):
self.bar = bar
def dec(cls):
cls.__init__ = new_init
return cls
@dec
@dataclass
class Foo:
bar: int
Foo(<arg1>)