-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix mypy 1.14.1 error #13148
Fix mypy 1.14.1 error #13148
Conversation
b015c28
to
04f392e
Compare
FYI, this is exactly the literal in typeshed and there is no importable version: https://github.com/python/typeshed/blob/f26ad2059ef33e7aa55a15bf861f594e441de03b/stdlib/tarfile.pyi#L109C11-L109C61 Also pyright is intelligent enough to know that |
That's quite ugly, if you ask me. Shall we skip the mypy upgrade until that is solved? |
I'll make an MRE, report it to mypy, and see what they say. |
+1 on getting this fixed in mypy rather than adding that hack - and if we can't get a fix in mypy, I'd prefer using With luck, it'll just get fixed in mypy, though. |
A little digging, this was actually caused by a typeshed change to the signature of mypy consistently upcasts I'm suspecting it will be easier to go with |
3f465cd
to
7760b94
Compare
Deciphering the comment on the mypy issue I'm going to go with Maybe one day it will become unnecessary, but doesn't seem like it will be soon. |
No description provided.