Skip to content

Commit ff1aba5

Browse files
committed
Fixed some cosmetic issues with pre-commit hooks.
1 parent 9f68134 commit ff1aba5

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

pandas/tests/generic/test_finalize.py

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
"""An exhaustive list of pandas methods exercising NDFrame.__finalize__.
2-
"""
1+
"""An exhaustive list of pandas methods exercising NDFrame.__finalize__."""
32

43
import operator
54
import re
65

76
import numpy as np
87
import pytest
98

10-
import pandas as pd
119
from pandas._typing import MergeHow
1210

11+
import pandas as pd
12+
1313
# TODO:
1414
# * Binary methods (mul, div, etc.)
1515
# * Binary outputs (align, etc.)
@@ -577,7 +577,8 @@ def test_datetime_property(attr):
577577

578578

579579
@pytest.mark.parametrize(
580-
"attr", ["days", "seconds", "microseconds", "nanoseconds", "components"],
580+
"attr",
581+
["days", "seconds", "microseconds", "nanoseconds", "components"],
581582
)
582583
def test_timedelta_property(attr):
583584
s = pd.Series(pd.timedelta_range("2000", periods=4))
@@ -621,7 +622,8 @@ def test_categorical_accessor(method):
621622

622623

623624
@pytest.mark.parametrize(
624-
"obj", [pd.Series([0, 0]), pd.DataFrame({"A": [0, 1], "B": [1, 2]})],
625+
"obj",
626+
[pd.Series([0, 0]), pd.DataFrame({"A": [0, 1], "B": [1, 2]})],
625627
)
626628
@pytest.mark.parametrize(
627629
"method",
@@ -640,7 +642,8 @@ def test_groupby_finalize(obj, method):
640642

641643

642644
@pytest.mark.parametrize(
643-
"obj", [pd.Series([0, 0]), pd.DataFrame({"A": [0, 1], "B": [1, 2]})],
645+
"obj",
646+
[pd.Series([0, 0]), pd.DataFrame({"A": [0, 1], "B": [1, 2]})],
644647
)
645648
@pytest.mark.parametrize(
646649
"method",
@@ -689,7 +692,9 @@ def test_finalize_frame_series_name():
689692
],
690693
)
691694
def test_merge_sets_duplication_allowance_flag(
692-
how: MergeHow, allow_on_left: bool, allow_on_right: bool,
695+
how: MergeHow,
696+
allow_on_left: bool,
697+
allow_on_right: bool,
693698
):
694699
"""Check that DataFrame.merge correctly sets the allow_duplicate_labels flag
695700
on its result.
@@ -719,7 +724,8 @@ def test_merge_sets_duplication_allowance_flag(
719724
[(False, False), (False, True), (True, False), (True, True)],
720725
)
721726
def test_merge_asof_sets_duplication_allowance_flag(
722-
allow_on_left: bool, allow_on_right: bool,
727+
allow_on_left: bool,
728+
allow_on_right: bool,
723729
):
724730
"""Check that pandas.merge_asof correctly sets the allow_duplicate_labels flag
725731
on its result.
@@ -794,7 +800,9 @@ def test_merge_does_not_propagate_metadata_from_unequal_input_metadata():
794800
ids=["left-empty", "right-empty", "both-empty"],
795801
)
796802
def test_merge_does_not_propagate_metadata_if_one_input_has_no_metadata(
797-
left: pd.DataFrame, right: pd.DataFrame, expected: dict,
803+
left: pd.DataFrame,
804+
right: pd.DataFrame,
805+
expected: dict,
798806
):
799807
"""Check that if the metadata for one input to pandas.merge is empty, the result
800808
of merge has the same metadata as the other input.

0 commit comments

Comments
 (0)