Skip to content
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

Fix type annotations for pandas.core.indexes.datetimes #26366

Closed
vaibhavhrt opened this issue May 13, 2019 · 1 comment · Fixed by #26404
Closed

Fix type annotations for pandas.core.indexes.datetimes #26366

vaibhavhrt opened this issue May 13, 2019 · 1 comment · Fixed by #26404
Labels
Typing type annotations, mypy/pyright type checking
Milestone

Comments

@vaibhavhrt
Copy link
Contributor

Part of #25882

Current errors are:

pandas\core\indexes\datetimes.py:7: error: Module 'pandas._libs' has no attribute 'join'
pandas\core\indexes\datetimes.py:89: error: Definition of "_data" in base class "DatetimeIndexOpsMixin" is incompatible with definition in base class "Index"
pandas\core\indexes\datetimes.py:89: error: Definition of "_data" in base class "DatetimeIndexOpsMixin" is incompatible with definition in base class "DatetimelikeDelegateMixin"
pandas\core\indexes\datetimes.py:89: error: Definition of "map" in base class "DatetimeIndexOpsMixin" is incompatible with definition in base class "Index"
pandas\core\indexes\datetimes.py:89: error: Definition of "_format_with_header" in base class "DatetimeIndexOpsMixin" is incompatible with definition in base class "Index"
pandas\core\indexes\datetimes.py:89: error: Definition of "isin" in base class "DatetimeIndexOpsMixin" is incompatible with definition in base class "Index"
pandas\core\indexes\datetimes.py:1115: error: "Callable[[Any], Any]" has no attribute "fget"
pandas\core\indexes\datetimes.py:1116: error: "Callable[[Any], Any]" has no attribute "fget"
pandas\core\indexes\datetimes.py:1117: error: "Callable[[Any], Any]" has no attribute "fget"
@vaibhavhrt
Copy link
Contributor Author

Has some issues similar to #26363 and #26364
Should wait for them to get resolved first.

@jreback jreback added the Typing type annotations, mypy/pyright type checking label May 16, 2019
@jreback jreback added this to the 0.25.0 milestone May 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants