Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e0f1611

Browse files
Upgrade to mypy 1.17.1 (#14598)
1 parent bcffe74 commit e0f1611

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

requirements-tests.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Type checkers that we test our stubs against. These should always
22
# be pinned to a specific version to make failure reproducible.
3-
mypy==1.16.1
3+
mypy==1.17.1
44
pyright==1.1.403
55

66
# Libraries used by our various scripts.

stubs/openpyxl/@tests/test_cases/check_base_descriptors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ class WithDescriptorsStrict(Strict):
236236
with_descriptors.set_tuple_none = 0.0
237237
with_descriptors.set_tuple_none = None
238238
with_descriptors.set_tuple_none = "none" # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
239-
with_descriptors.set_tuple_none = object() # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
239+
with_descriptors.set_tuple_none = object() # type: ignore
240240

241241

242242
with_descriptors.noneset_tuple = "a"

stubs/openpyxl/@tests/test_cases/check_nested_descriptors.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,15 +222,13 @@ class WithDescriptorsStrict(Strict):
222222
with_descriptors.set_tuple_none = 0.0
223223
with_descriptors.set_tuple_none = None
224224
with_descriptors.set_tuple_none = "none" # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
225-
with_descriptors.set_tuple_none = object() # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
225+
with_descriptors.set_tuple_none = object() # type: ignore
226226
with_descriptors.set_tuple_none = cast(_HasTagAndGet[Literal["a"]], _)
227227
with_descriptors.set_tuple_none = cast( # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
228228
_HasTagAndGet[str], _
229229
)
230230
with_descriptors.set_tuple_none = cast(_HasTagAndGet[None], _)
231-
with_descriptors.set_tuple_none = cast( # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
232-
_HasTagAndGet[object], _
233-
)
231+
with_descriptors.set_tuple_none = cast(_HasTagAndGet[object], _) # type: ignore
234232

235233

236234
with_descriptors.noneset_tuple = "a"

0 commit comments

Comments
 (0)