-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
Add type
back to attrs.field()
for use in attrs.make_class()
#1082
Comments
Aw man yeah when I celebrated to get rid of that, I forgot about |
I'm working on the implementation. |
Given that no type checker cares about |
I ended up not needing |
So metadata, gotcha! I'm asking because I want to put a fat warning next to the argument. |
This would also be nice for Typed Settings :-) |
@sscherfke well good news in #1107 ;) |
woop woop \o/ |
I'm using
attrs.make_class()
to dynamically construct a class based on other attrs classes, and it would be nice to be able to specify thetype
of the fields on the generated class usingattrs.field()
instead ofattr.ib()
. In other words, this works:but this does not:
The text was updated successfully, but these errors were encountered: