-
Notifications
You must be signed in to change notification settings - Fork 104
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
Type checking for dataclasses #161
Comments
Here's what I'm doing for this case: https://gist.github.com/svermeulen/8a6ad727113a6d07f78332152c1d33b2 |
@svermeulen Your gist works! Want to PR this to this project? Can I PR it? It needs a license. |
Feel free to PR it. I've added MIT license now |
Did this get merged? |
No, and I'm not sure what approach I want to take with regards to checking class/instance variable assignments. I don't think I will add support in v3.0. Maybe in a later release. |
That's a shame. With typeguard 2 this used to work if I am not mistaken. |
It never did work with typeguard 2. |
Hi @agronholm - are you planning to support this in typeguard 4? |
Maybe in some follow-up minor release, but not the 4.0 release that is imminent. |
Hi, I'm wondering if there can be support for type checking dataclasses? Currently, when I put
@typeguard.typechecked
on top of a dataclass definition, no checking happens (unless I'm mistaken).Thanks!
The text was updated successfully, but these errors were encountered: