René's URL Explorer Experiment


Title: Allow type checkers to ignore specific error codes by davidhalter · Pull Request #2153 · python/typing · GitHub

Open Graph Title: Allow type checkers to ignore specific error codes by davidhalter · Pull Request #2153 · python/typing

X Title: Allow type checkers to ignore specific error codes by davidhalter · Pull Request #2153 · python/typing

Description: Changes the error code from additional_stuff to assignment (as Mypy uses it). This was the proposal Rebecca: For # type: ignore[additional_stuff], I can see the argument for allowing an error about additional_stuff being an invalid code, but it seems tricky to update that line to allow both mypy’s and pyright’s behavior, since they’re so different. (Mypy also reports an assignment error, since that error code isn’t suppressed.) Maybe we could change it to: z: int = "" # type: ignore[assignment] so that the expected behavior in all type checkers is that there’s no error?

Open Graph Description: Changes the error code from additional_stuff to assignment (as Mypy uses it). This was the proposal Rebecca: For # type: ignore[additional_stuff], I can see the argument for allowing an error abou...

X Description: Changes the error code from additional_stuff to assignment (as Mypy uses it). This was the proposal Rebecca: For # type: ignore[additional_stuff], I can see the argument for allowing an error abou...

Opengraph URL: https://github.com/python/typing/pull/2153

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:711c54a6-42b0-4141-4b53-61bfef9bfc44
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA8B8:199D0B:36C255:46FA58:6AFF8979
html-safe-nonce7777dd580f5f0b571b78bd24e99589f587295028af97672458f525b36c36de0c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEI4OjE5OUQwQjozNkMyNTU6NDZGQTU4OjZBRkY4OTc5IiwidmlzaXRvcl9pZCI6IjI5OTY1NzMzMDUyNTI1Nzk3MDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8ff70c7894d720313cde335f61205b22e20a9cf8704b2285b61e3a78d29d3a08
hovercard-subject-tagpull_request:3187677628
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/typing/pull/2153/files
twitter:imagehttps://avatars.githubusercontent.com/u/748594?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/748594?s=400&v=4
og:image:altChanges the error code from additional_stuff to assignment (as Mypy uses it). This was the proposal Rebecca: For # type: ignore[additional_stuff], I can see the argument for allowing an error abou...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None587ad99a3e443b2e1cb0d3df059ec49ab54389861f13310766dfdeb615fed90d
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/typing git https://github.com/python/typing.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id24604008
octolytics-dimension-repository_nwopython/typing
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24604008
octolytics-dimension-repository_network_root_nwopython/typing
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5bb0fb68d64881d1344f5863d809515d496801e5
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/typing/pull/2153/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftyping%2Fpull%2F2153%2Ffiles
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%2Ftyping%2Fpull%2F2153%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Ftyping
Reloadhttps://github.com/python/typing/pull/2153/files
Reloadhttps://github.com/python/typing/pull/2153/files
Reloadhttps://github.com/python/typing/pull/2153/files
pythonhttps://github.com/python
typinghttps://github.com/python/typing
Codehttps://github.com/python/typing
Issues206 (206)https://github.com/python/typing/issues
Pull requests27 (27)https://github.com/python/typing/pulls
Discussionshttps://github.com/python/typing/discussions
Actionshttps://github.com/python/typing/actions
Security and qualityhttps://github.com/python/typing/security
Insightshttps://github.com/python/typing/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Ftyping%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Ftyping%2Fissues%2Fnew%2Fchoose
davidhalterhttps://github.com/davidhalter
python:mainhttps://github.com/python/typing/tree/main
davidhalter:zuban-ignorehttps://github.com/davidhalter/typing/tree/zuban-ignore
Conversation 42 https://github.com/python/typing/pull/2153
Commits 10 https://github.com/python/typing/pull/2153/commits
Checks 3 https://github.com/python/typing/pull/2153/checks
Files changed https://github.com/python/typing/pull/2153/files
Please reload this pagehttps://github.com/python/typing/pull/2153/files
Allow type checkers to ignore specific error codes https://github.com/python/typing/pull/2153/files#top
Show all changes 10 commits https://github.com/python/typing/pull/2153/files
f4a919a Allow type: ignore error codes filtering davidhalter Feb 25, 2026 https://github.com/python/typing/pull/2153/commits/f4a919aff6c296e3d084dfc4e00394c7f11415fd
6ce8087 Try to improve the wording for the spec davidhalter Mar 2, 2026 https://github.com/python/typing/pull/2153/commits/6ce8087e86acc17f01a9f3a4035b1bd38e167a3b
5cbcac4 Rephrase a bit of the spec davidhalter Mar 2, 2026 https://github.com/python/typing/pull/2153/commits/5cbcac430b07dcf87c07d54245051786116192de
6856262 Merge remote-tracking branch 'origin/main' into zuban-ignore davidhalter Apr 14, 2026 https://github.com/python/typing/pull/2153/commits/68562629541ba568fd31b9393b374b7e64b044ab
ffc8e7c Avoid specifying how whitespace after # type: ignore works davidhalter Apr 14, 2026 https://github.com/python/typing/pull/2153/commits/ffc8e7c9585d3ebffe304e5257b5e8fdea632509
a0bc8ad Update conformance/tests/directives_type_ignore.py davidhalter Apr 15, 2026 https://github.com/python/typing/pull/2153/commits/a0bc8ad05ce72abfd10c2b3a685a55340ad30a2a
614bf60 Update docs/spec/directives.rst davidhalter Apr 15, 2026 https://github.com/python/typing/pull/2153/commits/614bf6006a23c49b527634850d42ac0d2266f0de
ca781d2 Rerun the tests davidhalter Apr 16, 2026 https://github.com/python/typing/pull/2153/commits/ca781d23ae718a03afc833635b2550eacc369ff4
d37d815 Change the error code to a random error code and allow the error to h… davidhalter Apr 16, 2026 https://github.com/python/typing/pull/2153/commits/d37d81516769d1312cec3475ddb322a1a241fbc2
a6b55e4 Update conformance/tests/directives_type_ignore.py davidhalter Apr 16, 2026 https://github.com/python/typing/pull/2153/commits/a6b55e4de02b2cf1e850df3a284ff0d0f6a91f88
Clear filters https://github.com/python/typing/pull/2153/files
Please reload this pagehttps://github.com/python/typing/pull/2153/files
Please reload this pagehttps://github.com/python/typing/pull/2153/files
directives_type_ignore.toml https://github.com/python/typing/pull/2153/files#diff-573f68a60b8f5498133c56a79a1fa829f99d36f102a2923edb84ce4b36227f86
results.html https://github.com/python/typing/pull/2153/files#diff-1026e9a5ffcc2a9a0af3bc5b250ce31a9562dc874f49390536bb28e2e129c381
directives_type_ignore.toml https://github.com/python/typing/pull/2153/files#diff-b02dc667b61619e902428adfb4c504d8968428c5f28571a90697e8910ed447ba
directives_type_ignore.toml https://github.com/python/typing/pull/2153/files#diff-a68b921a89cbef76be453d2a8df53d79b3f899c00b6379688d571dc64d19475a
directives_type_ignore.py https://github.com/python/typing/pull/2153/files#diff-a1bf7a386fdf299d5aa0557268c40be95d7b1305478658fa0dd79d2a338f7752
directives.rst https://github.com/python/typing/pull/2153/files#diff-6aaa869bbce63d5ee37202ab4b18343572956318968cfcd5c3ef8cd499a003aa
conformance/results/mypy/directives_type_ignore.tomlhttps://github.com/python/typing/pull/2153/files#diff-573f68a60b8f5498133c56a79a1fa829f99d36f102a2923edb84ce4b36227f86
View file https://github.com/davidhalter/typing/blob/a6b55e4de02b2cf1e850df3a284ff0d0f6a91f88/conformance/results/mypy/directives_type_ignore.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typing/pull/2153/{{ revealButtonHref }}
https://github.com/python/typing/pull/2153/files#diff-573f68a60b8f5498133c56a79a1fa829f99d36f102a2923edb84ce4b36227f86
conformance/results/results.htmlhttps://github.com/python/typing/pull/2153/files#diff-1026e9a5ffcc2a9a0af3bc5b250ce31a9562dc874f49390536bb28e2e129c381
View file https://github.com/davidhalter/typing/blob/a6b55e4de02b2cf1e850df3a284ff0d0f6a91f88/conformance/results/results.html
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typing/pull/2153/{{ revealButtonHref }}
https://github.com/python/typing/pull/2153/files#diff-1026e9a5ffcc2a9a0af3bc5b250ce31a9562dc874f49390536bb28e2e129c381
https://github.com/python/typing/pull/2153/files#diff-1026e9a5ffcc2a9a0af3bc5b250ce31a9562dc874f49390536bb28e2e129c381
conformance/results/ty/directives_type_ignore.tomlhttps://github.com/python/typing/pull/2153/files#diff-b02dc667b61619e902428adfb4c504d8968428c5f28571a90697e8910ed447ba
View file https://github.com/davidhalter/typing/blob/a6b55e4de02b2cf1e850df3a284ff0d0f6a91f88/conformance/results/ty/directives_type_ignore.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typing/pull/2153/{{ revealButtonHref }}
conformance/results/zuban/directives_type_ignore.tomlhttps://github.com/python/typing/pull/2153/files#diff-a68b921a89cbef76be453d2a8df53d79b3f899c00b6379688d571dc64d19475a
View file https://github.com/davidhalter/typing/blob/a6b55e4de02b2cf1e850df3a284ff0d0f6a91f88/conformance/results/zuban/directives_type_ignore.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typing/pull/2153/{{ revealButtonHref }}
conformance/tests/directives_type_ignore.pyhttps://github.com/python/typing/pull/2153/files#diff-a1bf7a386fdf299d5aa0557268c40be95d7b1305478658fa0dd79d2a338f7752
View file https://github.com/davidhalter/typing/blob/a6b55e4de02b2cf1e850df3a284ff0d0f6a91f88/conformance/tests/directives_type_ignore.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typing/pull/2153/{{ revealButtonHref }}
https://github.com/python/typing/pull/2153/files#diff-a1bf7a386fdf299d5aa0557268c40be95d7b1305478658fa0dd79d2a338f7752
https://github.com/python/typing/pull/2153/files#diff-a1bf7a386fdf299d5aa0557268c40be95d7b1305478658fa0dd79d2a338f7752
docs/spec/directives.rsthttps://github.com/python/typing/pull/2153/files#diff-6aaa869bbce63d5ee37202ab4b18343572956318968cfcd5c3ef8cd499a003aa
View file https://github.com/davidhalter/typing/blob/a6b55e4de02b2cf1e850df3a284ff0d0f6a91f88/docs/spec/directives.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/typing/pull/2153/{{ revealButtonHref }}
https://github.com/python/typing/pull/2153/files#diff-6aaa869bbce63d5ee37202ab4b18343572956318968cfcd5c3ef8cd499a003aa
JukkaLhttps://github.com/JukkaL
Apr 16, 2026https://github.com/python/typing/pull/2153/files#r3094207589
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@ilevkivskyihttps://github.com/ilevkivskyi
herehttps://discuss.python.org/t/allow-type-ignore-mypy-style-error-codes-in-conformance-tests/105433/11
Please reload this pagehttps://github.com/python/typing/pull/2153/files
davidhalterhttps://github.com/davidhalter
Apr 16, 2026https://github.com/python/typing/pull/2153/files#r3094656066
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://mypy-play.net/?mypy=latest&python=3.12&flags=warn-unused-ignores&gist=27ebc9511f193a9f348b0235412cbcc9https://mypy-play.net/?mypy=latest&python=3.12&flags=warn-unused-ignores&gist=27ebc9511f193a9f348b0235412cbcc9
Please reload this pagehttps://github.com/python/typing/pull/2153/files
carljmhttps://github.com/carljm
Apr 16, 2026https://github.com/python/typing/pull/2153/files#r3095302418
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@ilevkivskyihttps://github.com/ilevkivskyi
Please reload this pagehttps://github.com/python/typing/pull/2153/files
rchen152https://github.com/rchen152
Apr 17, 2026https://github.com/python/typing/pull/2153/files#r3098293320
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@ilevkivskyihttps://github.com/ilevkivskyi
Please reload this pagehttps://github.com/python/typing/pull/2153/files
rchen152https://github.com/rchen152
Apr 24, 2026https://github.com/python/typing/pull/2153/files#r3139455305
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@ilevkivskyihttps://github.com/ilevkivskyi
Please reload this pagehttps://github.com/python/typing/pull/2153/files
carljmhttps://github.com/carljm
Apr 24, 2026https://github.com/python/typing/pull/2153/files#r3139593379
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/typing/pull/2153/files
https://github.com/python/typing/pull/2153/files#diff-6aaa869bbce63d5ee37202ab4b18343572956318968cfcd5c3ef8cd499a003aa
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.