Skip to content

Commit 75a3aac

Browse files
CLN: Remove unused type ignores
1 parent ca90c29 commit 75a3aac

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pandas/core/indexes/datetimes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ def __new__(
694694
if copy is not False:
695695
if dtype is None or astype_is_view(
696696
data.dtype,
697-
pandas_dtype(dtype), # type: ignore[arg-type]
697+
pandas_dtype(dtype),
698698
):
699699
data = data.copy()
700700
copy = False

pandas/core/indexes/interval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def __new__(
270270
if copy is not False:
271271
if dtype is None or astype_is_view(
272272
data.dtype,
273-
pandas_dtype(dtype), # type: ignore[arg-type]
273+
pandas_dtype(dtype),
274274
):
275275
data = data.copy()
276276
copy = False

pandas/core/indexes/period.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def __new__(
246246
if copy is not False:
247247
if dtype is None or astype_is_view(
248248
data.dtype,
249-
pandas_dtype(dtype), # type: ignore[arg-type]
249+
pandas_dtype(dtype),
250250
):
251251
data = data.copy()
252252
copy = False

0 commit comments

Comments
 (0)