Skip to content

Commit 3b1dd1c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
1 parent cbaaa2a commit 3b1dd1c

1 file changed

Lines changed: 6 additions & 18 deletions

File tree

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

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,8 @@ class WithDescriptorsStrict(Strict):
267267
with_descriptors.convertible_not_none = None # type: ignore
268268
with_descriptors.convertible_not_none = object() # type: ignore
269269
with_descriptors.convertible_not_none = cast(_HasTagAndGet[str], _)
270-
with_descriptors.convertible_not_none = cast( # type: ignore
271-
_HasTagAndGet[None], _
272-
)
273-
with_descriptors.convertible_not_none = cast( # type: ignore
274-
_HasTagAndGet[object], _
275-
)
270+
with_descriptors.convertible_not_none = cast(_HasTagAndGet[None], _) # type: ignore
271+
with_descriptors.convertible_not_none = cast(_HasTagAndGet[object], _) # type: ignore
276272

277273
with_descriptors.convertible_none = 0
278274
with_descriptors.convertible_none = "0"
@@ -429,12 +425,8 @@ class WithDescriptorsStrict(Strict):
429425
with_descriptors.float_not_none = None # type: ignore
430426
with_descriptors.float_not_none = object() # type: ignore
431427
with_descriptors.float_not_none = cast(_HasTagAndGet[float], _)
432-
with_descriptors.float_not_none = cast( # type: ignore
433-
_HasTagAndGet[None], _
434-
)
435-
with_descriptors.float_not_none = cast( # type: ignore
436-
_HasTagAndGet[object], _
437-
)
428+
with_descriptors.float_not_none = cast(_HasTagAndGet[None], _) # type: ignore
429+
with_descriptors.float_not_none = cast(_HasTagAndGet[object], _) # type: ignore
438430

439431
with_descriptors.float_none = 0
440432
with_descriptors.float_none = 0.0
@@ -454,12 +446,8 @@ class WithDescriptorsStrict(Strict):
454446
with_descriptors.integer_not_none = None # type: ignore
455447
with_descriptors.integer_not_none = object() # type: ignore
456448
with_descriptors.integer_not_none = cast(_HasTagAndGet[int], _)
457-
with_descriptors.integer_not_none = cast( # type: ignore
458-
_HasTagAndGet[None], _
459-
)
460-
with_descriptors.integer_not_none = cast( # type: ignore
461-
_HasTagAndGet[object], _
462-
)
449+
with_descriptors.integer_not_none = cast(_HasTagAndGet[None], _) # type: ignore
450+
with_descriptors.integer_not_none = cast(_HasTagAndGet[object], _) # type: ignore
463451

464452
with_descriptors.integer_none = 0
465453
with_descriptors.integer_none = 0.0

0 commit comments

Comments
 (0)