Skip to content

Commit

Permalink
Bump to mypy 1.11.2 (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
nipunn1313 authored Oct 4, 2024
1 parent d91d1df commit 088366d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Earlier releases might work, but aren't tested

Earlier releases might work, but aren't tested

- [mypy >= v1.4.1](https://pypi.org/project/mypy) or [pyright >= 1.1.206](https://github.com/microsoft/pyright)
- [mypy >= v1.11.2](https://pypi.org/project/mypy) or [pyright >= 1.1.206](https://github.com/microsoft/pyright)
- [python-protobuf >= 4.25.3](https://pypi.org/project/protobuf/) - matching protoc release
- [types-protobuf >= 4.24](https://pypi.org/project/types-protobuf/) - for stubs from the google.protobuf library

Expand Down
2 changes: 1 addition & 1 deletion mypy_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Requirements to run mypy itself. Mypy executable exists in a separate venv.
mypy==1.4.1
mypy==1.11.2
2 changes: 1 addition & 1 deletion test_negative/output.expected.3.8

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test_negative/output.expected.3.8.omit_linenos
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test_negative/negative.py: error: Incompatible types in assignment (expression h
test_negative/negative.py: error: "Type[Extensions1]" has no attribute "bad" [attr-defined]
test_negative/negative.py: error: "Extensions1" has no attribute "foo" [attr-defined]
test_negative/negative.py: error: Incompatible types in assignment (expression has type "Extensions2", variable has type "Extensions1") [assignment]
test_negative/negative.py: error: Invalid index type "str" for "_ExtensionDict[Simple1]"; expected type "_ExtensionFieldDescriptor[Simple1, <nothing>]" [index]
test_negative/negative.py: error: Invalid index type "str" for "_ExtensionDict[Simple1]"; expected type "_ExtensionFieldDescriptor[Simple1, Never]" [index]
test_negative/negative.py: error: Invalid index type "_ExtensionFieldDescriptor[Simple2, SeparateFileExtension]" for "_ExtensionDict[Simple1]"; expected type "_ExtensionFieldDescriptor[Simple1, SeparateFileExtension]" [index]
test_negative/negative.py: error: Unsupported operand types for in ("_ExtensionFieldDescriptor[Simple2, SeparateFileExtension]" and "_ExtensionDict[Simple1]") [operator]
test_negative/negative.py: error: Argument 1 to "__delitem__" of "_ExtensionDict" has incompatible type "_ExtensionFieldDescriptor[Simple2, SeparateFileExtension]"; expected "_ExtensionFieldDescriptor[Simple1, SeparateFileExtension]" [arg-type]
Expand Down

0 comments on commit 088366d

Please sign in to comment.