Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
17.1.0 apparently breaks asdict #192
Here's a sample to trigger that behavior:
import attr def optional_instance_of(of): return attr.validators.optional(attr.validators.instance_of(of)) @attr.s() class A: a = attr.ib(default=None, validator=optional_instance_of(int)) a = A() print(attr.asdict(a, filter=attr.filters.exclude(type(None))))
Is this related to #142 ?