Skip to content

Switch to PEP-604 syntax in python2 stubs #5915

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

Merged
merged 3 commits into from
Aug 14, 2021

Conversation

hoefling
Copy link
Contributor

Signed-off-by: oleg.hoefling [email protected]

@github-actions

This comment has been minimized.

@JelleZijlstra
Copy link
Member

Thanks! I think you'll need to remove a bunch of unused imports. (Pyright catches those, but doesn't run on Python 3.)

@hoefling
Copy link
Contributor Author

@JelleZijlstra yep, have to tweak the rewriting script a bit more for the unused imports...

@Akuli
Copy link
Collaborator

Akuli commented Aug 12, 2021

You could use my import cleaner from #5872, although it is much uglier than your scripts, and it can do weird things and requires reviewing the diff manually.

Signed-off-by: oleg.hoefling <[email protected]>
Signed-off-by: oleg.hoefling <[email protected]>
Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@github-actions

This comment has been minimized.

1 similar comment
@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants