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

Run pyupgrade --py38-plus on the source code #15575

Merged
merged 3 commits into from
Jul 3, 2023
Merged

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Jul 3, 2023

After py3.7 support is gone (#15566), we can update our source code with new python syntax.

mypyc/ir/ops.py Outdated Show resolved Hide resolved
Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

LGTM, assuming there are no more segfaults :-)

@github-actions
Copy link
Contributor

github-actions bot commented Jul 3, 2023

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@hauntsaninja hauntsaninja merged commit dcdcc60 into master Jul 3, 2023
@hauntsaninja hauntsaninja deleted the run-pyugrade-38-plus branch July 3, 2023 19:37
@ikonst
Copy link
Contributor

ikonst commented Jul 4, 2023

Let's follow up by updating the blame ignored revisions list?

@sobolevn
Copy link
Member Author

sobolevn commented Jul 4, 2023

@ikonst it only touched imports, which (in my opinion) is not very important.
But, if it bothers you, why not :)

@ikonst
Copy link
Contributor

ikonst commented Jul 4, 2023

I'm also seeing some f-strings and conversions to new union syntax. Not urgent, of course, can be done any time.

@ikonst ikonst mentioned this pull request Sep 3, 2023
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