Skip to content

Commit 5cf718c

Browse files
fix type errors in pandas/tests/arithmetic/test_datetime64.py
1 parent a2a35a8 commit 5cf718c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pandas/core/indexes/datetimes.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from datetime import date, datetime, time, timedelta, tzinfo
22
import operator
3-
from typing import Optional
3+
from typing import Callable, Optional
44
import warnings
55

66
import numpy as np
@@ -191,6 +191,7 @@ class DatetimeIndex(DatetimeTimedeltaMixin):
191191

192192
_data: DatetimeArray
193193
tz: Optional[tzinfo]
194+
tz_localize: Callable[..., "DatetimeIndex"]
194195

195196
# --------------------------------------------------------------------
196197
# Constructors

setup.cfg

-3
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,6 @@ check_untyped_defs=False
132132
[mypy-pandas.conftest]
133133
ignore_errors=True
134134

135-
[mypy-pandas.tests.arithmetic.test_datetime64]
136-
ignore_errors=True
137-
138135
[mypy-pandas.tests.extension.decimal.test_decimal]
139136
ignore_errors=True
140137

0 commit comments

Comments
 (0)