-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Misc Type Annotation fixes #26372
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
Misc Type Annotation fixes #26372
Conversation
Codecov Report
@@ Coverage Diff @@
## master #26372 +/- ##
==========================================
- Coverage 91.68% 91.68% -0.01%
==========================================
Files 174 174
Lines 50700 50710 +10
==========================================
+ Hits 46486 46492 +6
- Misses 4214 4218 +4
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #26372 +/- ##
==========================================
- Coverage 91.69% 91.69% -0.01%
==========================================
Files 174 174
Lines 50741 50748 +7
==========================================
+ Hits 46529 46532 +3
- Misses 4212 4216 +4
Continue to review full report at Codecov.
|
@WillAyd Do you have any insight into what's causing the Linux py37_np_dev tests to fail? It doesn't seem related to this PR to me. |
Just merged a fix into master for that should go away on next push |
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.
Minor comment otherwise over to @jreback
lgtm, can you merge master; ping on green. |
@jreback the board is green. |
Thanks @gwrome |
closes #26439 |
Part of #25882
git diff upstream/master -u -- "*.py" | flake8 --diff
Cleanup of type annotations in files that only had a handful of straightforward errors (or no longer threw errors). These include:
pandas.core.util.hasing
pandas/core/util/hashing.py:8: error: Module 'pandas._libs' has no attribute 'hashing'
pandas.core.indexing
pandas.core.internals.blocks
pandas/core/internals/blocks.py:2200: error: Definition of "_can_hold_na" in base class "ExtensionBlock" is incompatible with definition in base class "DatetimeBlock"
pandas.core.series
pandas/core/series.py:98: error: Definition of "_update_inplace" in base class "IndexOpsMixin" is incompatible with definition in base class "NDFrame"
pandas.core.panel
pandas/core/panel.py:867: error: Incompatible types in assignment (expression has type "Callable[[Any, Any], Any]", base class "NDFrame" defined the type as "Callable[[Any, Any, Any, Any], Any]")
pandas.core.reshape.reshape
pandas/core/reshape/reshape.py:6: error: Module 'pandas._libs' has no attribute 'reshape'
pandas.io.pytables
pandas.core.reshape.merge
pandas/core/reshape/merge.py:11: error: Module 'pandas._libs' has no attribute 'join'
pandas.util.testing
pandas/util/testing.py:24: error: Module 'pandas._libs' has no attribute 'testing'
pandas.core.window
pandas.core.resample
pandas.util._doctools was removed because it no longer threw mypy errors for some reason.