Files
openide/python/testData/completion/attrsValidatorParameters.after.py
2018-05-29 16:50:00 +03:00

26 lines
366 B
Python

import attr
@attr.s
class Foo:
x = attr.ib()
y = attr.ib()
z = attr.ib()
@x.validator
def validate_x(self, attribute):
pass
@y.validator
def validate_y(self, attribute, value):
pass
def validate_z1(self, ):
pass
def validate_z2():
pass
@z.default
def init_z(self, ):
return 1