Skip to content

Commit 3daceae

Browse files
srcoleWillAyd
authored andcommitted
CLN: fix mypy errors in pandas\tests\indexes\interval\test_base.py #28926 (#28961)
1 parent 8e034d6 commit 3daceae

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

pandas/tests/indexes/common.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import gc
2+
from typing import Optional, Type
23

34
import numpy as np
45
import pytest
@@ -30,7 +31,7 @@
3031
class Base:
3132
""" base class for index sub-class tests """
3233

33-
_holder = None
34+
_holder = None # type: Optional[Type[Index]]
3435
_compat_props = ["shape", "ndim", "size", "nbytes"]
3536

3637
def test_pickle_compat_construction(self):

setup.cfg

-21
Original file line numberDiff line numberDiff line change
@@ -148,33 +148,12 @@ ignore_errors=True
148148
[mypy-pandas.tests.extension.json.test_json]
149149
ignore_errors=True
150150

151-
[mypy-pandas.tests.indexes.datetimes.test_datetimelike]
152-
ignore_errors=True
153-
154-
[mypy-pandas.tests.indexes.interval.test_base]
155-
ignore_errors=True
156-
157151
[mypy-pandas.tests.indexes.interval.test_interval_tree]
158152
ignore_errors=True
159153

160-
[mypy-pandas.tests.indexes.period.test_period]
161-
ignore_errors=True
162-
163154
[mypy-pandas.tests.indexes.test_base]
164155
ignore_errors=True
165156

166-
[mypy-pandas.tests.indexes.test_category]
167-
ignore_errors=True
168-
169-
[mypy-pandas.tests.indexes.test_numeric]
170-
ignore_errors=True
171-
172-
[mypy-pandas.tests.indexes.test_range]
173-
ignore_errors=True
174-
175-
[mypy-pandas.tests.indexes.timedeltas.test_timedelta]
176-
ignore_errors=True
177-
178157
[mypy-pandas.tests.indexing.test_loc]
179158
ignore_errors=True
180159

0 commit comments

Comments
 (0)