René's URL Explorer Experiment


Title: Fix typing problems reported by mypy in pegen by pablogsal · Pull Request #20297 · python/cpython · GitHub

Open Graph Title: Fix typing problems reported by mypy in pegen by pablogsal · Pull Request #20297 · python/cpython

X Title: Fix typing problems reported by mypy in pegen by pablogsal · Pull Request #20297 · python/cpython

Description: 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.

Open Graph Description: 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.

X Description: 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.

Opengraph URL: https://github.com/python/cpython/pull/20297

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:630c4222-7065-8a94-8122-89719c0b7c1a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE086:279A16:65503D:8FB134:696A1118
html-safe-nonce233772fc122638e18156fd5ac5c496a89e86443510076916926b82c9a440d1c3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDg2OjI3OUExNjo2NTUwM0Q6OEZCMTM0OjY5NkExMTE4IiwidmlzaXRvcl9pZCI6IjUxOTgzMDg5MjI4MTk3NDQwMjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac83f7b333ff845c989a5bd0d47737712e6a099eb4921b2f745f1c11bb8e022c55
hovercard-subject-tagpull_request:421548384
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/20297/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/3e874bb841a2c1681ea3b21cb41a05c63b7b36ce49c4ef0596fa1a8a89f8a930/python/cpython/pull/20297
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3e874bb841a2c1681ea3b21cb41a05c63b7b36ce49c4ef0596fa1a8a89f8a930/python/cpython/pull/20297
og:image:altSome 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.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepablogsal
hostnamegithub.com
expected-hostnamegithub.com
None699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7266b2d935baa1c6474b16dd9feaa5ca30607261
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/20297#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F20297
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F20297
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/20297
Reloadhttps://github.com/python/cpython/pull/20297
Reloadhttps://github.com/python/cpython/pull/20297
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/20297
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/20297
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/20297#issue-comment-box
pablogsalhttps://github.com/pablogsal
python:masterhttps://github.com/python/cpython/tree/master
pablogsal:fix_mypyhttps://github.com/pablogsal/cpython/tree/fix_mypy
Fix typing problems reported by mypy in pegen https://github.com/python/cpython/pull/20297#top
pablogsalhttps://github.com/pablogsal
python:masterhttps://github.com/python/cpython/tree/master
pablogsal:fix_mypyhttps://github.com/pablogsal/cpython/tree/fix_mypy
Conversation 4 https://github.com/python/cpython/pull/20297
Commits 1 https://github.com/python/cpython/pull/20297/commits
Checks 0 https://github.com/python/cpython/pull/20297/checks
Files changed https://github.com/python/cpython/pull/20297/files
Please reload this pagehttps://github.com/python/cpython/pull/20297
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
May 21, 2020https://github.com/python/cpython/pull/20297#issue-622741705
Please reload this pagehttps://github.com/python/cpython/pull/20297
Please reload this pagehttps://github.com/python/cpython/pull/20297
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
May 21, 2020https://github.com/python/cpython/pull/20297#event-3362075201
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
May 21, 2020https://github.com/python/cpython/pull/20297#event-3362075278
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
isidenticalhttps://github.com/isidentical
May 21, 2020 19:54https://github.com/python/cpython/pull/20297#event-3362083415
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
force-pushedhttps://github.com/python/cpython/compare/28753dcc5041ed244b5fa0f1f0568c0d75c6cfc7..85c7c6972995f5fef79d1e48cb930b6c8ed523e7
28753dchttps://github.com/python/cpython/commit/28753dcc5041ed244b5fa0f1f0568c0d75c6cfc7
85c7c69https://github.com/python/cpython/commit/85c7c6972995f5fef79d1e48cb930b6c8ed523e7
Compare https://github.com/python/cpython/compare/28753dcc5041ed244b5fa0f1f0568c0d75c6cfc7..85c7c6972995f5fef79d1e48cb930b6c8ed523e7
May 21, 2020 19:54https://github.com/python/cpython/pull/20297#event-3362083478
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
skip issue https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20issue%22
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
May 21, 2020https://github.com/python/cpython/pull/20297#event-3362083762
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
May 21, 2020 https://github.com/python/cpython/pull/20297#ref-pullrequest-622705689
bpo-40334: Correctly generate C parser when assigned var is None #20296 https://github.com/python/cpython/pull/20296
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
force-pushedhttps://github.com/python/cpython/compare/85c7c6972995f5fef79d1e48cb930b6c8ed523e7..51080b9fc3c76cea23261bb36155162223ea5900
85c7c69https://github.com/python/cpython/commit/85c7c6972995f5fef79d1e48cb930b6c8ed523e7
51080b9https://github.com/python/cpython/commit/51080b9fc3c76cea23261bb36155162223ea5900
Compare https://github.com/python/cpython/compare/85c7c6972995f5fef79d1e48cb930b6c8ed523e7..51080b9fc3c76cea23261bb36155162223ea5900
May 21, 2020 19:56https://github.com/python/cpython/pull/20297#event-3362089484
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
lysnikolaouhttps://github.com/lysnikolaou
May 21, 2020 19:59https://github.com/python/cpython/pull/20297#event-3362098810
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
force-pushedhttps://github.com/python/cpython/compare/e1aa8e2275a8e629d47fca04481a17c2becc726d..3f8bbc884e27f6a6dd9f23aceb07310d470212b9
e1aa8e2https://github.com/python/cpython/commit/e1aa8e2275a8e629d47fca04481a17c2becc726d
3f8bbc8https://github.com/python/cpython/commit/3f8bbc884e27f6a6dd9f23aceb07310d470212b9
Compare https://github.com/python/cpython/compare/e1aa8e2275a8e629d47fca04481a17c2becc726d..3f8bbc884e27f6a6dd9f23aceb07310d470212b9
May 21, 2020 20:00https://github.com/python/cpython/pull/20297#event-3362104453
https://github.com/pablogsal
Fix typing problems reported by mypy in pegenhttps://github.com/python/cpython/pull/20297/commits/68a0e52765d9ab16240818a6bb79b0ad30bfebfd
68a0e52https://github.com/python/cpython/pull/20297/commits/68a0e52765d9ab16240818a6bb79b0ad30bfebfd
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
force-pushedhttps://github.com/python/cpython/compare/3f8bbc884e27f6a6dd9f23aceb07310d470212b9..68a0e52765d9ab16240818a6bb79b0ad30bfebfd
3f8bbc8https://github.com/python/cpython/commit/3f8bbc884e27f6a6dd9f23aceb07310d470212b9
68a0e52https://github.com/python/cpython/commit/68a0e52765d9ab16240818a6bb79b0ad30bfebfd
Compare https://github.com/python/cpython/compare/3f8bbc884e27f6a6dd9f23aceb07310d470212b9..68a0e52765d9ab16240818a6bb79b0ad30bfebfd
May 21, 2020 20:02https://github.com/python/cpython/pull/20297#event-3362108576
https://github.com/lysnikolaou
lysnikolaouhttps://github.com/lysnikolaou
May 21, 2020 https://github.com/python/cpython/pull/20297#pullrequestreview-416474028
View reviewed changes https://github.com/python/cpython/pull/20297/files/68a0e52765d9ab16240818a6bb79b0ad30bfebfd
lysnikolaouhttps://github.com/lysnikolaou
https://github.com/python/cpython/pull/20297#pullrequestreview-416474028
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/20297
https://github.com/lysnikolaou
lysnikolaouhttps://github.com/lysnikolaou
needs backport to 3.9 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.9%22
May 21, 2020https://github.com/python/cpython/pull/20297#event-3362238508
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
d10fef3https://github.com/python/cpython/commit/d10fef35c6ce8a3193b974be7e8c8304b1146153
May 21, 2020https://github.com/python/cpython/pull/20297#event-3362242104
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
May 21, 2020https://github.com/python/cpython/pull/20297#issuecomment-632333332
@pablogsalhttps://github.com/pablogsal
Please reload this pagehttps://github.com/python/cpython/pull/20297
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
May 21, 2020https://github.com/python/cpython/pull/20297#event-3362242302
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
May 21, 2020 20:39https://github.com/python/cpython/pull/20297#event-3362242562
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
May 21, 2020https://github.com/python/cpython/pull/20297#issuecomment-632333361
@pablogsalhttps://github.com/pablogsal
cherry_pickerhttps://pypi.org/project/cherry-picker/
Please reload this pagehttps://github.com/python/cpython/pull/20297
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
pablogsalhttps://github.com/pablogsal
May 21, 2020https://github.com/python/cpython/pull/20297#event-3362242731
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
needs backport to 3.9 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.9%22
May 21, 2020https://github.com/python/cpython/pull/20297#event-3362251392
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
May 21, 2020https://github.com/python/cpython/pull/20297#issuecomment-632334433
GH-20300https://github.com/python/cpython/pull/20300
3.9 branchhttps://github.com/python/cpython/tree/3.9
Please reload this pagehttps://github.com/python/cpython/pull/20297
pablogsalhttps://github.com/pablogsal
May 21, 2020 https://github.com/python/cpython/pull/20297#ref-commit-df0b4d4
https://github.com/pablogsal
[3.9] Fix typing problems reported by mypy in pegen (https://github.com/pablogsal/cpython/commit/df0b4d4c2858e2cfd9fe15dc56d8b1752eaa191c
pythonGH-20297https://github.com/python/cpython/pull/20297
).https://github.com/pablogsal/cpython/commit/df0b4d4c2858e2cfd9fe15dc56d8b1752eaa191c
df0b4d4https://github.com/pablogsal/cpython/commit/df0b4d4c2858e2cfd9fe15dc56d8b1752eaa191c
d10fef3https://github.com/pablogsal/cpython/commit/d10fef35c6ce8a3193b974be7e8c8304b1146153
pablogsalhttps://github.com/pablogsal
May 21, 2020 https://github.com/python/cpython/pull/20297#ref-commit-7178b1b
https://github.com/pablogsal
[3.9] Fix typing problems reported by mypy in pegen (https://github.com/python/cpython/commit/7178b1bb68aa14c35338b7b31ea5d1cbf76fb6a4
GH-20297https://github.com/python/cpython/pull/20297
) (https://github.com/python/cpython/commit/7178b1bb68aa14c35338b7b31ea5d1cbf76fb6a4
GH-20300https://github.com/python/cpython/pull/20300
7178b1bhttps://github.com/python/cpython/commit/7178b1bb68aa14c35338b7b31ea5d1cbf76fb6a4
https://github.com/python/cpython/pull/20300
d10fef3https://github.com/python/cpython/commit/d10fef35c6ce8a3193b974be7e8c8304b1146153
arturoescaiphttps://github.com/arturoescaip
May 24, 2020 https://github.com/python/cpython/pull/20297#ref-commit-7d18f8f
https://github.com/pablogsal
https://github.com/arturoescaip
Fix typing problems reported by mypy in pegen (https://github.com/arturoescaip/cpython/commit/7d18f8fc19148febd43a2b01b3da71a15abc3fa5
pythonGH-20297https://github.com/python/cpython/pull/20297
)https://github.com/arturoescaip/cpython/commit/7d18f8fc19148febd43a2b01b3da71a15abc3fa5
7d18f8fhttps://github.com/arturoescaip/cpython/commit/7d18f8fc19148febd43a2b01b3da71a15abc3fa5
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F20297
https://github.com/lysnikolaou
lysnikolaou https://github.com/lysnikolaou
https://github.com/python/cpython/pull/20297/files/68a0e52765d9ab16240818a6bb79b0ad30bfebfd
https://github.com/isidentical
isidentical https://github.com/isidentical
https://github.com/pablogsal
pablogsal https://github.com/pablogsal
skip issue https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20issue%22
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Please reload this pagehttps://github.com/python/cpython/pull/20297
https://github.com/pablogsal
https://github.com/miss-islington
https://github.com/bedevere-bot
https://github.com/lysnikolaou
https://github.com/the-knights-who-say-ni
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.