Skip to content
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

Add Y037 code to check for possible usage of PEP 604 new syntax #202

Merged
merged 11 commits into from
Apr 7, 2022

Conversation

AlexWaygood
Copy link
Collaborator

@AlexWaygood AlexWaygood commented Apr 6, 2022

Closes #45 (a continuation of @hoefling's PR #184, which I accidentally closed).

@AlexWaygood
Copy link
Collaborator Author

AlexWaygood commented Apr 6, 2022

This check now has only 27 hits in typeshed, so I'd now be in favour of merging it. I don't have a strong opinion about whether we should switch the check off in typeshed's flake8 config for now, or add 27 # noqa comments.

@AlexWaygood
Copy link
Collaborator Author

AlexWaygood commented Apr 6, 2022

@hoefling, are you happy with the tweaks I made to the error messages in cb93b35?

@JelleZijlstra
Copy link
Collaborator

Thanks, I'd prefer to turn the new code off in typeshed for now; we can just rely on check_new_syntax.py and code review in the meantime.

AlexWaygood added a commit to python/typeshed that referenced this pull request Apr 6, 2022
@AlexWaygood
Copy link
Collaborator Author

Thanks, I'd prefer to turn the new code off in typeshed for now; we can just rely on check_new_syntax.py and code review in the meantime.

python/typeshed#7600

AlexWaygood added a commit to python/typeshed that referenced this pull request Apr 6, 2022
@AlexWaygood
Copy link
Collaborator Author

Aand we have a green CI!

@AlexWaygood AlexWaygood merged commit 8a4ba4d into PyCQA:master Apr 7, 2022
@AlexWaygood AlexWaygood deleted the unions branch April 7, 2022 21:09
@AlexWaygood
Copy link
Collaborator Author

Thanks for the PR @hoefling!

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.

Suggest using PEP 604-style union types
4 participants