-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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 mypy error in pandas/tests.indexes.test_base.py #29188
Conversation
What error does this give? |
Hello @WillAyd |
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.
OK lgtm. Can you merge master one more time and push? Fixed some things with CI recently
I have merged it again. Please review the changes. |
mypy checks are failing see https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=19636 |
I have started working on them. |
Hello @simonjayhawkins @WillAyd
And the output it gave was,
So I think there is a mypy version conflict. |
yes these errors are not reported in 0.730. It was a typeshed fix though, see python/typeshed#3024 which was pulled into mypy for version 0.730 we are currently pinned to 0.720 on ci. |
Okay, then what should be done now. |
I guess two options.
eg. pandas/pandas/io/formats/printing.py Lines 490 to 494 in 2ca2161
@WillAyd any preference? |
@rushabh-v can you merge master. mypy has been bumped to 0.730 on ci. |
It is giving the same error(Slice index must be an integer or None) again. |
Yea I see the same locally - can you investigate further @rushabh-v ? |
Yes, I am looking into it. |
I am sorry, I mistakenly committed directly to master. |
It is giving this error for every version of mypy on my local machine. Even in 0.740.
Should we go with the 2nd option? @simonjayhawkins @WillAyd |
replacing the mypy issue, python/mypy#2410 is still open, so a |
Hello @rushabh-v! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2019-11-27 12:05:49 UTC |
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.
@rushabh-v Thanks for sticking with this. @WillAyd
Thanks @rushabh-v |
…ndexing-1row-df * upstream/master: (32 commits) DEPR: Series.cat.categorical (pandas-dev#29914) DEPR: infer_dtype default for skipna is now True (pandas-dev#29876) Fix broken asv (pandas-dev#29906) DEPR: Remove weekday_name (pandas-dev#29831) Fix mypy errors for pandas\tests\series\test_operators.py (pandas-dev#29826) CI: Setting path only once in GitHub Actions (pandas-dev#29867) DEPR: passing td64 data to DTA or dt64 data to TDA (pandas-dev#29794) CLN: remove unsupported sparse code from io.pytables (pandas-dev#29863) x.__class__ TO type(x) (pandas-dev#29889) DEPR: ftype, ftypes (pandas-dev#29895) REF: use named funcs instead of lambdas (pandas-dev#29841) Correct type inference for UInt64Index during access (pandas-dev#29420) CLN: follow-up to 29725 (pandas-dev#29890) CLN: trim unnecessary code in indexing tests (pandas-dev#29845) TST added test for groupby agg on mulitlevel column (pandas-dev#29772) (pandas-dev#29866) mypy fix (pandas-dev#29891) Typing annotations (pandas-dev#29850) Fix mypy error in pandas/tests.indexes.test_base.py (pandas-dev#29188) CLN: remove never-used kwargs, make kwargs explicit (pandas-dev#29873) TYP: Added typing to __eq__ functions (pandas-dev#29818) ...
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff