-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Use Any for field type in make_dataclass
#11657
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
Use Any for field type in make_dataclass
#11657
Conversation
This comment has been minimized.
This comment has been minimized.
AlexWaygood
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
|
Can this be object instead? |
|
I think Any is more appropriate because we don't really want to accept all objects. For example, ideally we'd reject |
|
Yeah, I agree with Jelle. It can't actually be any object, so |
This comment has been minimized.
This comment has been minimized.
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Any for field type in make_dataclassAny for field type in make_dataclass
|
Thanks @alexei! |
|
Thanks guys! |
Fixes #11653