Skip to content

Commit

Permalink
CLN: Fix typing in pandas\tests\arrays\test_datetimelike.py (pandas-d…
Browse files Browse the repository at this point in the history
  • Loading branch information
jjlkant authored and proost committed Dec 19, 2019
1 parent 4ffaa39 commit 523af80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 6 additions & 1 deletion pandas/tests/arrays/test_datetimelike.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
from typing import Type, Union

import numpy as np
import pytest

from pandas._libs import OutOfBoundsDatetime

import pandas as pd
from pandas.core.arrays import DatetimeArray, PeriodArray, TimedeltaArray
from pandas.core.indexes.datetimes import DatetimeIndex
from pandas.core.indexes.period import PeriodIndex
from pandas.core.indexes.timedeltas import TimedeltaIndex
import pandas.util.testing as tm


Expand Down Expand Up @@ -52,7 +57,7 @@ def timedelta_index(request):


class SharedTests:
index_cls = None
index_cls = None # type: Type[Union[DatetimeIndex, PeriodIndex, TimedeltaIndex]]

def test_compare_len1_raises(self):
# make sure we raise when comparing with different lengths, specific
Expand Down
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,6 @@ ignore_errors=True
[mypy-pandas.tests.arithmetic.test_datetime64]
ignore_errors=True

[mypy-pandas.tests.arrays.test_datetimelike]
ignore_errors=True

[mypy-pandas.tests.dtypes.test_common]
ignore_errors=True

Expand Down

0 comments on commit 523af80

Please sign in to comment.