Skip to content

Conversation

@Swanand01
Copy link
Contributor

The FrameOrSeriesUnion check was already removed. I have removed the FrameOrSeriesUnion alias, and replaced all instances of FrameOrSeriesUnion with DataFrame | Series

from pandas._typing import (
ArrayLike,
FrameOrSeriesUnion,
DataFrame | Series,
Copy link
Member

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 :)

Copy link
Contributor Author

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?

Copy link
Member

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

@datapythonista datapythonista added Clean Typing type annotations, mypy/pyright type checking labels May 18, 2021
@datapythonista datapythonista changed the title remove-frame-or-series-check CLN: Replace FrameOrSeriesUnion annotation by DataFrame | Series May 18, 2021
@Swanand01
Copy link
Contributor Author

HI, I have created a new commit. Please review it. Thank you.

@MarcoGorelli
Copy link
Member

HI, I have created a new commit. Please review it. Thank you.

Thanks - can you fetch and merge upstream/master please?

@Swanand01
Copy link
Contributor Author

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.

@MarcoGorelli
Copy link
Member

I cannot see the Compare and Pull Request button that usually appears

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

@MarcoGorelli
Copy link
Member

Looks like there's a merge conflict, could you resolve it please?

My workflow for doing this would be

git fetch upstream
git merge upstream/master
# resolve any conflicts
git commit -a
git push origin

@MarcoGorelli MarcoGorelli self-requested a review June 4, 2021 09:53
@pep8speaks
Copy link

pep8speaks commented Jun 11, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Clean Typing type annotations, mypy/pyright type checking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

STYLE, TYP frame-or-series-union check no longer relevant

4 participants