Skip to content

Commit 55abdc5

Browse files
vaibhavhrtjreback
authored andcommitted
Fix Type Annotation in pandas.core.accessor (#26147)
1 parent ef3bec2 commit 55abdc5

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

mypy.ini

-15
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,9 @@ ignore_errors=True
1111
[mypy-pandas.compat.numpy.function]
1212
ignore_errors=True
1313

14-
[mypy-pandas.core.accessor]
15-
ignore_errors=True
16-
1714
[mypy-pandas.core.api]
1815
ignore_errors=True
1916

20-
[mypy-pandas.core.apply]
21-
ignore_errors=True
22-
2317
[mypy-pandas.core.arrays.array_]
2418
ignore_errors=True
2519

@@ -32,15 +26,9 @@ ignore_errors=True
3226
[mypy-pandas.core.arrays.interval]
3327
ignore_errors=True
3428

35-
[mypy-pandas.core.arrays.numpy_]
36-
ignore_errors=True
37-
3829
[mypy-pandas.core.arrays.period]
3930
ignore_errors=True
4031

41-
[mypy-pandas.core.arrays.sparse]
42-
ignore_errors=True
43-
4432
[mypy-pandas.core.arrays.timedeltas]
4533
ignore_errors=True
4634

@@ -98,9 +86,6 @@ ignore_errors=True
9886
[mypy-pandas.core.series]
9987
ignore_errors=True
10088

101-
[mypy-pandas.core.sparse.frame]
102-
ignore_errors=True
103-
10489
[mypy-pandas.core.util.hashing]
10590
ignore_errors=True
10691

pandas/core/accessor.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55
that can be mixed into or pinned onto other pandas classes.
66
77
"""
8+
from typing import Set
89
import warnings
910

1011
from pandas.util._decorators import Appender
1112

1213

1314
class DirNamesMixin:
14-
_accessors = frozenset()
15+
_accessors = set() # type: Set[str]
1516
_deprecations = frozenset(
1617
['asobject', 'base', 'data', 'flags', 'itemsize', 'strides'])
1718

0 commit comments

Comments
 (0)