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
typeguard doesn't check types like "a | b" #276
Comments
This should be pretty easy to fix, we just need to add handling for a new type when available. See equivalent fixes here:
I guess it would be rather fitting if I provided a fix for this here as well, we'll see if I find the time. Cheers |
This is already done in master, but I haven't had any time to devote on the project lately, thus no new release :( |
This is included in v3.0.0b1. |
Exciting to see |
It seems typeguard doesn't support types like "a | b" that is introduced in PEP604.
To Reproduce
Expected behavior
Both should raise TypeError, but in reality f("a") just passed without raising an exception.
The text was updated successfully, but these errors were encountered: