From 088366d2707b29aa92576dca8d6eadefd654f445 Mon Sep 17 00:00:00 2001 From: Nipunn Koorapati Date: Thu, 3 Oct 2024 20:44:22 -0700 Subject: [PATCH] Bump to mypy 1.11.2 (#633) --- README.md | 2 +- mypy_requirements.txt | 2 +- test_negative/output.expected.3.8 | 2 +- test_negative/output.expected.3.8.omit_linenos | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2957077a..25282b1d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/mypy_requirements.txt b/mypy_requirements.txt index d59a3261..969ddc90 100644 --- a/mypy_requirements.txt +++ b/mypy_requirements.txt @@ -1,2 +1,2 @@ # Requirements to run mypy itself. Mypy executable exists in a separate venv. -mypy==1.4.1 +mypy==1.11.2 diff --git a/test_negative/output.expected.3.8 b/test_negative/output.expected.3.8 index 29a5eac8..cdf01992 100644 --- a/test_negative/output.expected.3.8 +++ b/test_negative/output.expected.3.8 @@ -27,7 +27,7 @@ test_negative/negative.py:87: error: Incompatible types in assignment (expressio test_negative/negative.py:88: error: "Type[Extensions1]" has no attribute "bad" [attr-defined] test_negative/negative.py:90: error: "Extensions1" has no attribute "foo" [attr-defined] test_negative/negative.py:91: error: Incompatible types in assignment (expression has type "Extensions2", variable has type "Extensions1") [assignment] -test_negative/negative.py:95: error: Invalid index type "str" for "_ExtensionDict[Simple1]"; expected type "_ExtensionFieldDescriptor[Simple1, ]" [index] +test_negative/negative.py:95: error: Invalid index type "str" for "_ExtensionDict[Simple1]"; expected type "_ExtensionFieldDescriptor[Simple1, Never]" [index] test_negative/negative.py:96: error: Invalid index type "_ExtensionFieldDescriptor[Simple2, SeparateFileExtension]" for "_ExtensionDict[Simple1]"; expected type "_ExtensionFieldDescriptor[Simple1, SeparateFileExtension]" [index] test_negative/negative.py:97: error: Unsupported operand types for in ("_ExtensionFieldDescriptor[Simple2, SeparateFileExtension]" and "_ExtensionDict[Simple1]") [operator] test_negative/negative.py:98: error: Argument 1 to "__delitem__" of "_ExtensionDict" has incompatible type "_ExtensionFieldDescriptor[Simple2, SeparateFileExtension]"; expected "_ExtensionFieldDescriptor[Simple1, SeparateFileExtension]" [arg-type] diff --git a/test_negative/output.expected.3.8.omit_linenos b/test_negative/output.expected.3.8.omit_linenos index 5df0d985..5bc6fb58 100644 --- a/test_negative/output.expected.3.8.omit_linenos +++ b/test_negative/output.expected.3.8.omit_linenos @@ -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, ]" [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]