-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
python version checks don't seem to work with 0.780 #8990
Comments
This is a typeshed issue. |
okay, but is there any way around this using I don't understand why the errors are different between python versions. There seems no way to specify a "type ignore" that only applies to one python version. Linked PR on pydantic pydantic/pydantic#1598 |
Basically a dupe of #8823 (typeshed-specific details aside) You should be able to work around with something like:
which isn't ideal, since mypy will now treat ForwardRef as Any. Edit: Actually, you could do the following:
|
It doesn't look like there is a (new) action item for mypy here, so closing. |
@hauntsaninja thanks for pointing to the other issue. Unfortunately you |
Upgrading to mypy 0.780 from 0.770, I can't find a way to get the following lines to pass with both python 3.6 and 3.7.
If I try ignoring different lines with
# type: ignore
I get either errors orunused 'type: ignore' comment
from one version of python or the other.Is this a problem with 0.780 or am I doing something wrong.
The text was updated successfully, but these errors were encountered: