Skip to content

Commit cbaaa2a

Browse files
authored
fix other test cases
1 parent 965da80 commit cbaaa2a

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -167,19 +167,19 @@ class WithDescriptorsStrict(Strict):
167167
assert_type(with_descriptors.minmax_int, int)
168168
assert_type(with_descriptors.minmax_int_none, Union[int, None])
169169

170-
assert_type(with_descriptors.bool_not_none, bool) # type: ignore[assert-type] # False-positive in mypy
170+
assert_type(with_descriptors.bool_not_none, bool)
171171
assert_type(with_descriptors.bool_none, Union[bool, None])
172172

173173
assert_type(with_descriptors.emptytag_not_none, bool)
174174
assert_type(with_descriptors.emptytag_none, Union[bool, None])
175175

176-
assert_type(with_descriptors.string_not_none, str) # type: ignore[assert-type] # False-positive in mypy
176+
assert_type(with_descriptors.string_not_none, str)
177177
assert_type(with_descriptors.string_none, Union[str, None])
178178

179-
assert_type(with_descriptors.float_not_none, float) # type: ignore[assert-type] # False-positive in mypy
179+
assert_type(with_descriptors.float_not_none, float)
180180
assert_type(with_descriptors.float_none, Union[float, None])
181181

182-
assert_type(with_descriptors.integer_not_none, int) # type: ignore[assert-type] # False-positive in mypy
182+
assert_type(with_descriptors.integer_not_none, int)
183183
assert_type(with_descriptors.integer_none, Union[int, None])
184184

185185

@@ -264,13 +264,13 @@ class WithDescriptorsStrict(Strict):
264264

265265
with_descriptors.convertible_not_none = 0
266266
with_descriptors.convertible_not_none = "0"
267-
with_descriptors.convertible_not_none = None # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
268-
with_descriptors.convertible_not_none = object() # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
267+
with_descriptors.convertible_not_none = None # type: ignore
268+
with_descriptors.convertible_not_none = object() # type: ignore
269269
with_descriptors.convertible_not_none = cast(_HasTagAndGet[str], _)
270-
with_descriptors.convertible_not_none = cast( # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
270+
with_descriptors.convertible_not_none = cast( # type: ignore
271271
_HasTagAndGet[None], _
272272
)
273-
with_descriptors.convertible_not_none = cast( # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
273+
with_descriptors.convertible_not_none = cast( # type: ignore
274274
_HasTagAndGet[object], _
275275
)
276276

@@ -426,13 +426,13 @@ class WithDescriptorsStrict(Strict):
426426
with_descriptors.float_not_none = 0.0
427427
with_descriptors.float_not_none = "0"
428428
with_descriptors.float_not_none = b"0"
429-
with_descriptors.float_not_none = None # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
430-
with_descriptors.float_not_none = object() # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
429+
with_descriptors.float_not_none = None # type: ignore
430+
with_descriptors.float_not_none = object() # type: ignore
431431
with_descriptors.float_not_none = cast(_HasTagAndGet[float], _)
432-
with_descriptors.float_not_none = cast( # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
432+
with_descriptors.float_not_none = cast( # type: ignore
433433
_HasTagAndGet[None], _
434434
)
435-
with_descriptors.float_not_none = cast( # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
435+
with_descriptors.float_not_none = cast( # type: ignore
436436
_HasTagAndGet[object], _
437437
)
438438

@@ -451,13 +451,13 @@ class WithDescriptorsStrict(Strict):
451451
with_descriptors.integer_not_none = 0.0
452452
with_descriptors.integer_not_none = "0"
453453
with_descriptors.integer_not_none = b"0"
454-
with_descriptors.integer_not_none = None # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
455-
with_descriptors.integer_not_none = object() # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
454+
with_descriptors.integer_not_none = None # type: ignore
455+
with_descriptors.integer_not_none = object() # type: ignore
456456
with_descriptors.integer_not_none = cast(_HasTagAndGet[int], _)
457-
with_descriptors.integer_not_none = cast( # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
457+
with_descriptors.integer_not_none = cast( # type: ignore
458458
_HasTagAndGet[None], _
459459
)
460-
with_descriptors.integer_not_none = cast( # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
460+
with_descriptors.integer_not_none = cast( # type: ignore
461461
_HasTagAndGet[object], _
462462
)
463463

0 commit comments

Comments
 (0)