File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change
1
+ from typing import Type , Union
2
+
1
3
import numpy as np
2
4
import pytest
3
5
4
6
from pandas ._libs import OutOfBoundsDatetime
5
7
6
8
import pandas as pd
7
9
from pandas .core .arrays import DatetimeArray , PeriodArray , TimedeltaArray
10
+ from pandas .core .indexes .datetimes import DatetimeIndex
11
+ from pandas .core .indexes .period import PeriodIndex
12
+ from pandas .core .indexes .timedeltas import TimedeltaIndex
8
13
import pandas .util .testing as tm
9
14
10
15
@@ -52,7 +57,7 @@ def timedelta_index(request):
52
57
53
58
54
59
class SharedTests :
55
- index_cls = None
60
+ index_cls = None # type: Type[Union[DatetimeIndex, PeriodIndex, TimedeltaIndex]]
56
61
57
62
def test_compare_len1_raises (self ):
58
63
# make sure we raise when comparing with different lengths, specific
Original file line number Diff line number Diff line change @@ -136,9 +136,6 @@ ignore_errors=True
136
136
[mypy-pandas.tests.arithmetic.test_datetime64]
137
137
ignore_errors =True
138
138
139
- [mypy-pandas.tests.arrays.test_datetimelike]
140
- ignore_errors =True
141
-
142
139
[mypy-pandas.tests.dtypes.test_common]
143
140
ignore_errors =True
144
141
You can’t perform that action at this time.
0 commit comments