-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Fix type annotations in pandas.core.indexes.datetimes #26404
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 in pandas.core.indexes.datetimes #26404
Conversation
Errors that still remain are:
Needs some investigation to decide a single type to use consistently for these attributes across all class. |
Codecov Report
@@ Coverage Diff @@
## master #26404 +/- ##
==========================================
- Coverage 91.69% 91.68% -0.01%
==========================================
Files 174 174
Lines 50743 50744 +1
==========================================
- Hits 46527 46525 -2
- Misses 4216 4219 +3
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #26404 +/- ##
==========================================
- Coverage 91.74% 91.74% -0.01%
==========================================
Files 174 174
Lines 50763 50764 +1
==========================================
- Hits 46575 46573 -2
- Misses 4188 4191 +3
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like an isort failure in CI
@WillAyd some suggestion on what to do with these errors:
List of attributes with conflicting types:
I don't see any easy way of fixing the methods which have different parameters. Maybe we should just ignore these errors too. |
Haven’t been able to deeply review but you can try aligning the signatures for the methods - seems like the difference is only optional keywords anyway |
@WillAyd I can fix the last two but what about |
I would think they are the same |
this is ok, @vaibhavhrt you have some checks issue, can you fix up and ping on green |
…sues were solved automatically after fixing pandas.core.indexes.datetimes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make tests pass!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm @jreback
@jreback please review and merge. |
I think pandas/pandas/core/indexes/base.py Line 522 in 65eac80
|
@plammens there are a million different classes that inherits from the |
thanks @vaibhavhrt |
git diff upstream/master -u -- "*.py" | flake8 --diff
pandas/core/indexes/timedeltas.py
taken care of as well since the errors were the same.