Skip to content

Commit 513e0c5

Browse files
committed
LINT: black
1 parent 8e40cac commit 513e0c5

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

pandas/core/generic.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -11791,8 +11791,5 @@ def validate_ascending(
1179111791

1179211792
def _check_ascending_element(value):
1179311793
"""Ensure that each item in ``ascending`` kwarg is either bool or int."""
11794-
if (
11795-
value is None
11796-
or not isinstance(value, (bool, int))
11797-
):
11794+
if value is None or not isinstance(value, (bool, int)):
1179811795
raise ValueError("ascending must be either a bool or a sequence of bools")

pandas/tests/frame/methods/test_sort_index.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ def test_sort_index_with_categories(self, categories):
766766
[
767767
None,
768768
(True, None),
769-
(False, 'True'),
769+
(False, "True"),
770770
],
771771
)
772772
def test_sort_index_ascending_bad_value_raises(self, ascending):

pandas/tests/series/methods/test_sort_index.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def test_sort_index_ascending_list(self):
203203
[
204204
None,
205205
(True, None),
206-
(False, 'True'),
206+
(False, "True"),
207207
],
208208
)
209209
def test_sort_index_ascending_bad_value_raises(self, ascending):

0 commit comments

Comments
 (0)