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

Fix typing problems reported by mypy in pegen #20297

Merged
merged 1 commit into from
May 21, 2020

Conversation

pablogsal
Copy link
Member

@pablogsal pablogsal commented May 21, 2020

Some general fixes that mypy was complaining about and use a type-specialized function instead of visit to avoid dealing with Any everywhere. Also, executed "black" over the source.

Copy link
Contributor

@lysnikolaou lysnikolaou left a comment

Choose a reason for hiding this comment

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

Didn't even know about field, really nice. LGTM!

@lysnikolaou lysnikolaou added the needs backport to 3.9 only security fixes label May 21, 2020
@pablogsal pablogsal merged commit d10fef3 into python:master May 21, 2020
@miss-islington
Copy link
Contributor

Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry, @pablogsal, I could not cleanly backport this to 3.9 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker d10fef35c6ce8a3193b974be7e8c8304b1146153 3.9

@bedevere-bot
Copy link

GH-20300 is a backport of this pull request to the 3.9 branch.

pablogsal added a commit to pablogsal/cpython that referenced this pull request May 21, 2020
(cherry picked from commit d10fef3)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
pablogsal added a commit that referenced this pull request May 21, 2020
)

(cherry picked from commit d10fef3)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
arturoescaip pushed a commit to arturoescaip/cpython that referenced this pull request May 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants