Skip to content

Commit 965da80

Browse files
authored
fix some test cases
1 parent 39539f7 commit 965da80

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -177,27 +177,27 @@ class WithDescriptorsStrict(Strict):
177177
assert_type(with_descriptors.match_pattern_bytes, ReadableBuffer)
178178
assert_type(with_descriptors.match_pattern_bytes_none, Union[ReadableBuffer, None])
179179

180-
assert_type(with_descriptors.convertible_not_none, int) # type: ignore[assert-type] # False-positive in mypy
180+
assert_type(with_descriptors.convertible_not_none, int)
181181
assert_type(with_descriptors.convertible_none, Union[int, None])
182182

183-
assert_type(with_descriptors.minmax_float, float) # type: ignore[assert-type] # False-positive in mypy
183+
assert_type(with_descriptors.minmax_float, float)
184184
assert_type(with_descriptors.minmax_float_none, Union[float, None])
185-
assert_type(with_descriptors.minmax_int, int) # type: ignore[assert-type] # False-positive in mypy
185+
assert_type(with_descriptors.minmax_int, int)
186186
assert_type(with_descriptors.minmax_int_none, Union[int, None])
187187

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

191-
assert_type(with_descriptors.datetime_not_none, datetime) # type: ignore[assert-type] # False-positive in mypy
191+
assert_type(with_descriptors.datetime_not_none, datetime)
192192
assert_type(with_descriptors.datetime_none, Union[datetime, None])
193193

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

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

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

203203

@@ -289,8 +289,8 @@ class WithDescriptorsStrict(Strict):
289289

290290
with_descriptors.convertible_not_none = 0
291291
with_descriptors.convertible_not_none = "0"
292-
with_descriptors.convertible_not_none = None # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
293-
with_descriptors.convertible_not_none = object() # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
292+
with_descriptors.convertible_not_none = None # type: ignore
293+
with_descriptors.convertible_not_none = object() # type: ignore
294294

295295
with_descriptors.convertible_none = 0
296296
with_descriptors.convertible_none = "0"
@@ -301,7 +301,7 @@ class WithDescriptorsStrict(Strict):
301301
with_descriptors.minmax_float = 0
302302
with_descriptors.minmax_float = "0"
303303
with_descriptors.minmax_float = 0.0
304-
with_descriptors.minmax_float = None # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
304+
with_descriptors.minmax_float = None # type: ignore
305305
with_descriptors.minmax_float = object() # type: ignore
306306

307307
with_descriptors.minmax_float_none = 0
@@ -313,7 +313,7 @@ class WithDescriptorsStrict(Strict):
313313
with_descriptors.minmax_int = 0
314314
with_descriptors.minmax_int = "0"
315315
with_descriptors.minmax_int = 0.0
316-
with_descriptors.minmax_int = None # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
316+
with_descriptors.minmax_int = None # type: ignore
317317
with_descriptors.minmax_int = object() # type: ignore
318318

319319
with_descriptors.minmax_int_none = 0
@@ -354,7 +354,7 @@ class WithDescriptorsStrict(Strict):
354354

355355

356356
with_descriptors.string_not_none = ""
357-
with_descriptors.string_not_none = None # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
357+
with_descriptors.string_not_none = None # type: ignore
358358
with_descriptors.string_not_none = 0 # type: ignore
359359

360360
with_descriptors.string_none = ""
@@ -366,8 +366,8 @@ class WithDescriptorsStrict(Strict):
366366
with_descriptors.float_not_none = 0.0
367367
with_descriptors.float_not_none = "0"
368368
with_descriptors.float_not_none = b"0"
369-
with_descriptors.float_not_none = None # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
370-
with_descriptors.float_not_none = object() # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
369+
with_descriptors.float_not_none = None # type: ignore
370+
with_descriptors.float_not_none = object() # type: ignore
371371

372372
with_descriptors.float_none = 0
373373
with_descriptors.float_none = 0.0
@@ -381,8 +381,8 @@ class WithDescriptorsStrict(Strict):
381381
with_descriptors.integer_not_none = 0.0
382382
with_descriptors.integer_not_none = "0"
383383
with_descriptors.integer_not_none = b"0"
384-
with_descriptors.integer_not_none = None # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
385-
with_descriptors.integer_not_none = object() # pyright: ignore[reportAttributeAccessIssue] # false negative in mypy
384+
with_descriptors.integer_not_none = None # type: ignore
385+
with_descriptors.integer_not_none = object() # type: ignore
386386

387387
with_descriptors.integer_none = 0
388388
with_descriptors.integer_none = 0.0

0 commit comments

Comments
 (0)