Andrei Bodrov
Andrei Bodrov
Why don't use `validator`? Like ```python def validate_type(self, attr, value): assert isinstance(value, attr.type) @attr.dataclass(frozen=True, slots=True) # .dataclass( is shorter than .s(auto_attribs=True, class XContainer: the_x: X = attr.ib(validator=validate_type) @property def x_metadata(self)...
Oh, I've missed the whole point about order of parameters in `__init__` as in most of examples there is only one attribute that can be passed in `__init__`. If I'd...
Thanks for the fast review and cool suggestion! I've rewritten the example using `IdentityFunction`, though I'm a little bit concerned to show a "proper" example of decorator protocol definition, so...
@srittau Hello, I've went through your comments and it seems that I've resolved the issues. Would you look at this PR one more time please?
Thanks for the thoughtful discussion! :) @sobolevn In your example with `List` you mean it should be `` not `Any`? I believe in other means this is fine, as `List`...