-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Update mypy to 1.18.1 #14699
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
Update mypy to 1.18.1 #14699
Conversation
There are many stubtest failures. What do @JelleZijlstra and @srittau think about adding them to |
As a first step, I think we should add |
There are also quite a few entries that were stubtest bugs that were fixed and can be removed, which is good of course. I'm okay with adding the remaining entries (with FIXMEs to look at them more closely). |
I'm working on patches for the |
@brianschubert awesome! Thank you, please feel free to push them here :) |
error: grpc.aio.ClientCallDetails.__new__ is inconsistent, stub parameter "cls" differs from runtime parameter "_cls"
For reference: https://github.com/python-excel/xlrd/blob/3a19d22014d7b3f3041b7188d21a653c18c709bf/xlrd/formula.py#L675 ``` /home/runner/work/typeshed/typeshed/stubs/xlrd/xlrd/formula.pyi /home/runner/work/typeshed/typeshed/stubs/xlrd/xlrd/formula.pyi:66:9 - error: Mismatch between signature of __new__ and __init__ in class "Ref3D" Signature of __init__ is "(atuple: tuple[int, int, int, int, int, int, int, int, int, int, int, int]) -> None" Signature of __new__ is "(iterable: Iterable[int] = ..., /) -> Ref3D" (reportInconsistentConstructor) 1 error, 0 warnings, 0 informations ``` ``` $ uv run -w xlrd python -c 'import xlrd; print(xlrd.formula.Ref3D.__new__ is tuple.__new__)' True ```
I pushed some commits which fix the |
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Amazing work, thank you! |
Let's see how it goes!