René's URL Explorer Experiment


Title: Add beginnings of error code support by JukkaL · Pull Request #7267 · python/mypy · GitHub

Open Graph Title: Add beginnings of error code support by JukkaL · Pull Request #7267 · python/mypy

X Title: Add beginnings of error code support by JukkaL · Pull Request #7267 · python/mypy

Description: Optional static typing for Python. Contribute to python/mypy development by creating an account on GitHub.

Open Graph Description: This PR adds a foundation for error codes and implements a few error codes. It also adds support for # type: ignore[code1, ...] which ignores only specific error codes on a line. Only a few errors ...

X Description: This PR adds a foundation for error codes and implements a few error codes. It also adds support for # type: ignore[code1, ...] which ignores only specific error codes on a line. Only a few errors ...

Opengraph URL: https://github.com/python/mypy/pull/7267

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
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:99c62d3c-ba07-16de-685a-69f945a1477e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCD50:1D18A:4B2BAF:6698AD:6B0071B3
html-safe-nonceb82e73f258650c27e535bd0f6a9fdd3f8e04e02512f90d877cbe8ef6d88831a8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDUwOjFEMThBOjRCMkJBRjo2Njk4QUQ6NkIwMDcxQjMiLCJ2aXNpdG9yX2lkIjoiNDY2MzUzNjU3MDUyMTkwNzYzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace4a5a667e11bc8704ccb80255ed38ea7ac6d52f67ff521c0e98224c847602bde
hovercard-subject-tagpull_request:301625515
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/mypy/7267/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/4c7f25e550118dad6db9ee4fa5e097338650b5c1eb2c15199c36bbc34015be48/python/mypy/pull/7267
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4c7f25e550118dad6db9ee4fa5e097338650b5c1eb2c15199c36bbc34015be48/python/mypy/pull/7267
og:image:altThis PR adds a foundation for error codes and implements a few error codes. It also adds support for # type: ignore[code1, ...] which ignores only specific error codes on a line. Only a few errors ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJukkaL
hostnamegithub.com
expected-hostnamegithub.com
None75c2b65dd205f26961d0c29afed1a8d0bb7cca9f05780571dfd1ef93eb539d16
turbo-cache-controlno-cache
go-importgithub.com/python/mypy git https://github.com/python/mypy.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id7053637
octolytics-dimension-repository_nwopython/mypy
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id7053637
octolytics-dimension-repository_network_root_nwopython/mypy
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
release84e563eb4b55f8fa102f325f117533cee9e3df4a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/mypy/pull/7267#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F7267
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F7267
Sign uphttps://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%2Fmypy
Reloadhttps://github.com/python/mypy/pull/7267
Reloadhttps://github.com/python/mypy/pull/7267
Reloadhttps://github.com/python/mypy/pull/7267
pythonhttps://github.com/python
mypyhttps://github.com/python/mypy
Codehttps://github.com/python/mypy
Issues2.7k (2.7k)https://github.com/python/mypy/issues
Pull requests543 (543)https://github.com/python/mypy/pulls
Actionshttps://github.com/python/mypy/actions
Projectshttps://github.com/python/mypy/projects
Wikihttps://github.com/python/mypy/wiki
Security and qualityhttps://github.com/python/mypy/security
Insightshttps://github.com/python/mypy/insights
https://github.com/python/mypy
JukkaLhttps://github.com/JukkaL
masterhttps://github.com/python/mypy/tree/master
error-codeshttps://github.com/python/mypy/tree/error-codes
Conversationhttps://github.com/python/mypy/pull/7267
Commits18 (18)https://github.com/python/mypy/pull/7267/commits
Checkshttps://github.com/python/mypy/pull/7267/checks
Files changedhttps://github.com/python/mypy/pull/7267/files
Add beginnings of error code supporthttps://github.com/python/mypy/pull/7267#top
JukkaLhttps://github.com/JukkaL
masterhttps://github.com/python/mypy/tree/master
error-codeshttps://github.com/python/mypy/tree/error-codes
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
Jul 26, 2019https://github.com/python/mypy/pull/7267#issue-473463000
#7239https://github.com/python/mypy/issues/7239
Please reload this pagehttps://github.com/python/mypy/pull/7267
JukkaLhttps://github.com/JukkaL
July 25, 2019 17:07https://github.com/python/mypy/pull/7267#commits-pushed-8c2649b
https://github.com/JukkaL
WIP basic support for error codeshttps://github.com/python/mypy/pull/7267/commits/8c2649b1e8d148f3a9c9dc7459d9f7fbb18d2cde
8c2649bhttps://github.com/python/mypy/pull/7267/commits/8c2649b1e8d148f3a9c9dc7459d9f7fbb18d2cde
https://github.com/JukkaL
Clean up testhttps://github.com/python/mypy/pull/7267/commits/8d03a6658d0f8ecb15131192dec6abb87cd7cfd5
8d03a66https://github.com/python/mypy/pull/7267/commits/8d03a6658d0f8ecb15131192dec6abb87cd7cfd5
https://github.com/JukkaL
WIP semantic analyzer errorshttps://github.com/python/mypy/pull/7267/commits/e7ac143580354cea80e54caa8ea539a4cbafe6c7
e7ac143https://github.com/python/mypy/pull/7267/commits/e7ac143580354cea80e54caa8ea539a4cbafe6c7
https://github.com/JukkaL
WIP default to 'misc' category for errorshttps://github.com/python/mypy/pull/7267/commits/cf7a01530de6aefb28e990acf2e6d8a633530952
cf7a015https://github.com/python/mypy/pull/7267/commits/cf7a01530de6aefb28e990acf2e6d8a633530952
https://github.com/JukkaL
WIP add test casehttps://github.com/python/mypy/pull/7267/commits/bd3bd36d4e005aedc3cca3562407a443511a4951
bd3bd36https://github.com/python/mypy/pull/7267/commits/bd3bd36d4e005aedc3cca3562407a443511a4951
https://github.com/JukkaL
WIP may be incompletehttps://github.com/python/mypy/pull/7267/commits/d7356fc700adff1e3af824581bded7c4e4158dde
d7356fchttps://github.com/python/mypy/pull/7267/commits/d7356fc700adff1e3af824581bded7c4e4158dde
https://github.com/JukkaL
More WIPhttps://github.com/python/mypy/pull/7267/commits/451254303905b2c97fda5ab52d9a457f596a7b21
4512543https://github.com/python/mypy/pull/7267/commits/451254303905b2c97fda5ab52d9a457f596a7b21
https://github.com/JukkaL
Add error code to Python 2 syntax errorshttps://github.com/python/mypy/pull/7267/commits/282fd9eca1832aa342c9c844d560344b09a1628d
282fd9ehttps://github.com/python/mypy/pull/7267/commits/282fd9eca1832aa342c9c844d560344b09a1628d
https://github.com/JukkaL
Basic # type: ignore supporthttps://github.com/python/mypy/pull/7267/commits/eb0ab56a6b42625e7d1a6ee9d01158a47bc213d0
eb0ab56https://github.com/python/mypy/pull/7267/commits/eb0ab56a6b42625e7d1a6ee9d01158a47bc213d0
https://github.com/JukkaL
Support ignoring multiple error codeshttps://github.com/python/mypy/pull/7267/commits/9b2ddc09b3ec3a73067eea7da0c58944a4204d0b
9b2ddc0https://github.com/python/mypy/pull/7267/commits/9b2ddc09b3ec3a73067eea7da0c58944a4204d0b
https://github.com/JukkaL
Add TODO commenthttps://github.com/python/mypy/pull/7267/commits/9e558bcb1c760611950b525a80777a71fcecb862
9e558bchttps://github.com/python/mypy/pull/7267/commits/9e558bcb1c760611950b525a80777a71fcecb862
https://github.com/JukkaL
Add test caseshttps://github.com/python/mypy/pull/7267/commits/af51696038f58d11c860723902388d57beffbbc0
af51696https://github.com/python/mypy/pull/7267/commits/af51696038f58d11c860723902388d57beffbbc0
https://github.com/JukkaL
Fix type ignore after Python 2 argument commenthttps://github.com/python/mypy/pull/7267/commits/62c0f261b0616163bb94a67861aa00b8603007db
62c0f26https://github.com/python/mypy/pull/7267/commits/62c0f261b0616163bb94a67861aa00b8603007db
https://github.com/JukkaL
Fix linthttps://github.com/python/mypy/pull/7267/commits/a3aee9740ff73cb8b98a5f407150f363bff1e8f3
a3aee97https://github.com/python/mypy/pull/7267/commits/a3aee9740ff73cb8b98a5f407150f363bff1e8f3
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
msullivanhttps://github.com/msullivan
July 26, 2019 17:34https://github.com/python/mypy/pull/7267#event-2513252698
https://github.com/msullivan
msullivanhttps://github.com/msullivan
Jul 31, 2019 https://github.com/python/mypy/pull/7267#pullrequestreview-269214431
View reviewed changes https://github.com/python/mypy/pull/7267/files/a3aee9740ff73cb8b98a5f407150f363bff1e8f3
msullivanhttps://github.com/msullivan
https://github.com/python/mypy/pull/7267#pullrequestreview-269214431
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/7267
mypy/errors.pyhttps://github.com/python/mypy/pull/7267/files/a3aee9740ff73cb8b98a5f407150f363bff1e8f3#diff-eef80074ed3627574b7a784f0e2a4e9d4670e7c2156f559ada501980ea5d1ca2
msullivanhttps://github.com/msullivan
Jul 31, 2019https://github.com/python/mypy/pull/7267#discussion_r309378846
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/7267
JukkaLhttps://github.com/JukkaL
Aug 7, 2019https://github.com/python/mypy/pull/7267#discussion_r311548690
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/7267
mypy/fastparse.pyhttps://github.com/python/mypy/pull/7267/files/a3aee9740ff73cb8b98a5f407150f363bff1e8f3#diff-a7d2c40f4be6322cee498432ca9dbbc3a356c3cbcb61029231452f6638bb11b5
msullivanhttps://github.com/msullivan
Jul 31, 2019https://github.com/python/mypy/pull/7267#discussion_r309386530
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/7267
JukkaLhttps://github.com/JukkaL
Aug 7, 2019https://github.com/python/mypy/pull/7267#discussion_r311547070
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/7267
mypy/fastparse.pyhttps://github.com/python/mypy/pull/7267/files/a3aee9740ff73cb8b98a5f407150f363bff1e8f3#diff-a7d2c40f4be6322cee498432ca9dbbc3a356c3cbcb61029231452f6638bb11b5
msullivanhttps://github.com/msullivan
Jul 31, 2019https://github.com/python/mypy/pull/7267#discussion_r309386924
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/7267
JukkaLhttps://github.com/JukkaL
Aug 7, 2019https://github.com/python/mypy/pull/7267#discussion_r311546545
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/7267
mypy/errorcodes.pyhttps://github.com/python/mypy/pull/7267/files/a3aee9740ff73cb8b98a5f407150f363bff1e8f3#diff-4d7515936862a1554e61963c53f2de825d698e3acd21ea76bd410f1b06941ce6
msullivanhttps://github.com/msullivan
Jul 31, 2019https://github.com/python/mypy/pull/7267#discussion_r309389696
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/7267
JukkaLhttps://github.com/JukkaL
Aug 7, 2019https://github.com/python/mypy/pull/7267#discussion_r311546262
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/7267
mypy/fastparse.pyhttps://github.com/python/mypy/pull/7267/files/a3aee9740ff73cb8b98a5f407150f363bff1e8f3#diff-a7d2c40f4be6322cee498432ca9dbbc3a356c3cbcb61029231452f6638bb11b5
msullivanhttps://github.com/msullivan
Jul 31, 2019https://github.com/python/mypy/pull/7267#discussion_r309409039
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/7267
mypy/errorcodes.pyhttps://github.com/python/mypy/pull/7267/files/a3aee9740ff73cb8b98a5f407150f363bff1e8f3#diff-4d7515936862a1554e61963c53f2de825d698e3acd21ea76bd410f1b06941ce6
msullivanhttps://github.com/msullivan
Jul 31, 2019https://github.com/python/mypy/pull/7267#discussion_r309410927
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/7267
JukkaLhttps://github.com/JukkaL
Aug 7, 2019https://github.com/python/mypy/pull/7267#discussion_r311544713
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/7267
JukkaLhttps://github.com/JukkaL
Aug 7, 2019https://github.com/python/mypy/pull/7267#discussion_r311650126
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/7267
https://github.com/msullivan
msullivanhttps://github.com/msullivan
Jul 31, 2019https://github.com/python/mypy/pull/7267#issuecomment-517004078
Please reload this pagehttps://github.com/python/mypy/pull/7267
https://github.com/msullivan
msullivanhttps://github.com/msullivan
Jul 31, 2019 https://github.com/python/mypy/pull/7267#pullrequestreview-269312012
View reviewed changes https://github.com/python/mypy/pull/7267/files/a3aee9740ff73cb8b98a5f407150f363bff1e8f3
mypy/newsemanal/semanal.pyhttps://github.com/python/mypy/pull/7267/files/a3aee9740ff73cb8b98a5f407150f363bff1e8f3#diff-959498e321dbb00f11a2172112d9b9daa723b461fbdc9f0cc9b4ec7508c3b43d
msullivanhttps://github.com/msullivan
Jul 31, 2019https://github.com/python/mypy/pull/7267#discussion_r309455303
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/7267
JukkaLhttps://github.com/JukkaL
Aug 7, 2019https://github.com/python/mypy/pull/7267#discussion_r311542898
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/7267
JukkaLhttps://github.com/JukkaL
August 7, 2019 15:56https://github.com/python/mypy/pull/7267#commits-pushed-3b7bb32
https://github.com/JukkaL
Merge branch 'master' into error-codeshttps://github.com/python/mypy/pull/7267/commits/3b7bb32689c56eaa3e31120a85746eb4702ee1e2
3b7bb32https://github.com/python/mypy/pull/7267/commits/3b7bb32689c56eaa3e31120a85746eb4702ee1e2
https://github.com/JukkaL
Force new semantic analyzerhttps://github.com/python/mypy/pull/7267/commits/28b357a1c04950d42bd43436b827304eeb6773d5
28b357ahttps://github.com/python/mypy/pull/7267/commits/28b357a1c04950d42bd43436b827304eeb6773d5
https://github.com/JukkaL
Attempt to fix mypyc compiled versionhttps://github.com/python/mypy/pull/7267/commits/d81cb87d21d255c909a3928a3ac866fd2463e120
d81cb87https://github.com/python/mypy/pull/7267/commits/d81cb87d21d255c909a3928a3ac866fd2463e120
https://github.com/JukkaL
Fix also fastparse2https://github.com/python/mypy/pull/7267/commits/19253816cc9ad63b12f549ecf1dca3650b14c259
1925381https://github.com/python/mypy/pull/7267/commits/19253816cc9ad63b12f549ecf1dca3650b14c259
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
Aug 7, 2019https://github.com/python/mypy/pull/7267#issuecomment-519185943
Please reload this pagehttps://github.com/python/mypy/pull/7267
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
bf47c65https://github.com/python/mypy/commit/bf47c6506eeb35d22b3c43239527d4b60f5042eb
Aug 7, 2019https://github.com/python/mypy/pull/7267#event-2540867120
https://github.com/msullivan
msullivanhttps://github.com/msullivan
August 7, 2019 17:35https://github.com/python/mypy/pull/7267#event-2540867986
https://github.co/hiddenchars
https://github.com/python/mypy/pull/{{ revealButtonHref }}
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%2Fmypy%2Fpull%2F7267
https://github.com/msullivan
msullivan https://github.com/msullivan
https://github.com/python/mypy/pull/7267/files/a3aee9740ff73cb8b98a5f407150f363bff1e8f3
Please reload this pagehttps://github.com/python/mypy/pull/7267
Please reload this pagehttps://github.com/python/mypy/pull/7267
https://github.com/JukkaL
https://github.com/msullivan
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.