Skip to content

Fix type annotation for pandas.core.generic.py #25909

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Apr 16, 2019
3 changes: 0 additions & 3 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ ignore_errors=True
[mypy-pandas.core.frame]
ignore_errors=True

[mypy-pandas.core.generic]
ignore_errors=True

[mypy-pandas.core.groupby.generic]
ignore_errors=True

Expand Down
5 changes: 3 additions & 2 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import json
import operator
from textwrap import dedent
from typing import Container, List
import warnings
import weakref

Expand Down Expand Up @@ -113,10 +114,10 @@ class NDFrame(PandasObject, SelectionMixin):
'_default_fill_value', '_metadata', '__array_struct__',
'__array_interface__']
_internal_names_set = set(_internal_names)
_accessors = frozenset()
_accessors = frozenset() # type: Container[str]
_deprecations = frozenset(['as_blocks', 'blocks',
'convert_objects', 'is_copy'])
_metadata = []
_metadata = [] # type: List[str]
_is_copy = None

# dummy attribute so that datetime.__eq__(Series/DataFrame) defers
Expand Down