Skip to content

Commit 9687457

Browse files
committed
Apply pre-commit fixes: isort and remove unused type ignore
1 parent 09d4a63 commit 9687457

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

pandas/core/frame.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,14 @@
112112
BaseMaskedDtype,
113113
ExtensionDtype,
114114
)
115+
from pandas.core.dtypes.generic import (
116+
ABCIndex,
117+
ABCSeries,
118+
)
115119
from pandas.core.dtypes.missing import (
116120
isna,
117121
notna,
118122
)
119-
from pandas.core.dtypes.generic import (
120-
ABCSeries,
121-
ABCIndex
122-
)
123123

124124
from pandas.core import (
125125
algorithms,
@@ -804,7 +804,7 @@ def __init__(
804804
mgr = dict_to_mgr(
805805
# error: Item "ndarray" of "Union[ndarray, Series, Index]" has no
806806
# attribute "name"
807-
{data.name: data}, # type: ignore[union-attr]
807+
{data.name: data},
808808
index,
809809
columns,
810810
dtype=dtype,

pandas/tests/frame/test_constructors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2792,6 +2792,7 @@ def __new__(cls, input_array):
27922792
expected = DataFrame(np.eye(3))
27932793
tm.assert_frame_equal(df, expected)
27942794

2795+
27952796
class TestDataFrameConstructorIndexInference:
27962797
def test_frame_from_dict_of_series_overlapping_monthly_period_indexes(self):
27972798
rng1 = pd.period_range("1/1/1999", "1/1/2012", freq="M")

0 commit comments

Comments
 (0)