-
Notifications
You must be signed in to change notification settings - Fork 587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
builds() and from_type() should introspect attrs-classes #954
Comments
Ive had to reroute a few projects because I was using that type of layout but didn't have a clean way to test specifically this so definitely +1 |
Some notes:
This all becomes more "interesting" once we start to consider validators.
All together, this probably means we'll write a new module |
There's heaps of metadata on the attributes, and we could certainly infer a strategy for attributes with an "instance_of" validator. Even with python-attrs/attrs#249, special handling would still be valuable because we could filter by any other validators.
This issue brought to you by realizing that I wanted this feature in a project I'm playing with - in that case it's going to be faster to hard-code a strategy, but it would definitely be used as well as nice to have 😄
The text was updated successfully, but these errors were encountered: