-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
CLN: Replace FrameOrSeriesUnion annotation by DataFrame | Series #41546
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
CLN: Replace FrameOrSeriesUnion annotation by DataFrame | Series #41546
Conversation
pandas/core/util/hashing.py
Outdated
| from pandas._typing import ( | ||
| ArrayLike, | ||
| FrameOrSeriesUnion, | ||
| DataFrame | Series, |
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.
DataFrame | Series doesn't need importing, just remove the FrameOrSeriesUnion import :)
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.
Should I remove all other places where DataFrame | Series is being imported as well?
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.
yeah, from pandas._typing import DataFrame | Series is invalid syntax anyway
|
HI, I have created a new commit. Please review it. Thank you. |
Thanks - can you fetch and merge upstream/master please? |
|
Hi @MarcoGorelli, I seem to be stuck. I updated the forked repo on my github page by fetch and merge upstream, and tried to push changes. However, I cannot see the Compare and Pull Request button that usually appears. Initially, I tried force pushing as git would not let me push changes. Thanks. |
If you've already opened a pull request (as you have), there's no need to open a new one, you can just add a commit and push it |
|
Looks like there's a merge conflict, could you resolve it please? My workflow for doing this would be |
|
Hello @Swanand01! 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 2021-06-11 17:30:30 UTC |
The FrameOrSeriesUnion check was already removed. I have removed the FrameOrSeriesUnion alias, and replaced all instances of FrameOrSeriesUnion with DataFrame | Series