René's URL Explorer Experiment


Title: Allow `types.NoneType` in match cases by A5rocks · Pull Request #20383 · python/mypy · GitHub

Open Graph Title: Allow `types.NoneType` in match cases by A5rocks · Pull Request #20383 · python/mypy

X Title: Allow `types.NoneType` in match cases by A5rocks · Pull Request #20383 · python/mypy

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

Open Graph Description: Fixes #20367

X Description: Fixes #20367

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

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:f1f6e38b-ba02-e13f-5804-00ffd15e9b31
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9D10:1915C:1230BC6:18CC7AA:6A5F12EF
html-safe-nonce50848584832e6ab017ca0d0a8b649f1f5d15600d5894869297438a440b8e5f2a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDEwOjE5MTVDOjEyMzBCQzY6MThDQzdBQTo2QTVGMTJFRiIsInZpc2l0b3JfaWQiOiI3NjI1NDQ5MDY2OTgzMjY1MDA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac3d746ebaed0eef9917182ea62543541d69a3fd63191ed22215aeab0c9ee63613
hovercard-subject-tagpull_request:3083921501
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/20383/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/d3a355ba0d5e4605be1ca5c2dee58eaf05074f264afc3d8e87114fb4737ca676/python/mypy/pull/20383
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d3a355ba0d5e4605be1ca5c2dee58eaf05074f264afc3d8e87114fb4737ca676/python/mypy/pull/20383
og:image:altFixes #20367
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameA5rocks
hostnamegithub.com
expected-hostnamegithub.com
Nonebf8fa4b42b6d150def6175efb9b0f1ec8e9628d7229ee2bdf6e850e7bdad923e
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
release7debc3c6cd5de09c6e22b47a1b9982acb2aabb7b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/mypy/pull/20383#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F20383
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2Fmypy%2Fpull%2F20383
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%2Fmypy
Reloadhttps://github.com/python/mypy/pull/20383
Reloadhttps://github.com/python/mypy/pull/20383
Reloadhttps://github.com/python/mypy/pull/20383
Please reload this pagehttps://github.com/python/mypy/pull/20383
python https://github.com/python
mypyhttps://github.com/python/mypy
Please reload this pagehttps://github.com/python/mypy/pull/20383
Notifications https://github.com/login?return_to=%2Fpython%2Fmypy
Fork 3.3k https://github.com/login?return_to=%2Fpython%2Fmypy
Star 20.5k https://github.com/login?return_to=%2Fpython%2Fmypy
Code https://github.com/python/mypy
Issues 2.7k https://github.com/python/mypy/issues
Pull requests 472 https://github.com/python/mypy/pulls
Actions https://github.com/python/mypy/actions
Projects https://github.com/python/mypy/projects
Wiki https://github.com/python/mypy/wiki
Security and quality 0 https://github.com/python/mypy/security
Insights https://github.com/python/mypy/pulse
Code https://github.com/python/mypy
Issues https://github.com/python/mypy/issues
Pull requests https://github.com/python/mypy/pulls
Actions https://github.com/python/mypy/actions
Projects https://github.com/python/mypy/projects
Wiki https://github.com/python/mypy/wiki
Security and quality https://github.com/python/mypy/security
Insights https://github.com/python/mypy/pulse
ilevkivskyihttps://github.com/ilevkivskyi
python:masterhttps://github.com/python/mypy/tree/master
A5rocks:allow-nonetypehttps://github.com/A5rocks/mypy/tree/allow-nonetype
Conversationhttps://github.com/python/mypy/pull/20383
Commits1 (1)https://github.com/python/mypy/pull/20383/commits
Checkshttps://github.com/python/mypy/pull/20383/checks
Files changedhttps://github.com/python/mypy/pull/20383/files
Allow types.NoneType in match caseshttps://github.com/python/mypy/pull/20383#top
ilevkivskyihttps://github.com/ilevkivskyi
python:masterhttps://github.com/python/mypy/tree/master
A5rocks:allow-nonetypehttps://github.com/A5rocks/mypy/tree/allow-nonetype
https://github.com/A5rocks
A5rockshttps://github.com/A5rocks
Dec 9, 2025https://github.com/python/mypy/pull/20383#issue-3708951544
#20367https://github.com/python/mypy/issues/20367
Please reload this pagehttps://github.com/python/mypy/pull/20383
https://github.com/A5rocks
Allow NoneType in match caseshttps://github.com/python/mypy/pull/20383/commits/ef53130b0fcc786804a9a7e3d6211a98828b62e6
ef53130https://github.com/python/mypy/pull/20383/commits/ef53130b0fcc786804a9a7e3d6211a98828b62e6
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Dec 9, 2025https://github.com/python/mypy/pull/20383#issuecomment-3630061531
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://github.com/python/mypy/pull/20383
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Dec 9, 2025 https://github.com/python/mypy/pull/20383#pullrequestreview-3557055222
View reviewed changes https://github.com/python/mypy/pull/20383/files/ef53130b0fcc786804a9a7e3d6211a98828b62e6
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
e69af83https://github.com/python/mypy/commit/e69af831614f88583b0d3abb5d9e8e9df175d5e6
Dec 9, 2025https://github.com/python/mypy/pull/20383#event-21451689845
Please reload this pagehttps://github.com/python/mypy/pull/20383
https://github.com/A5rocks
A5rockshttps://github.com/A5rocks
December 9, 2025 15:35https://github.com/python/mypy/pull/20383#event-21457033483
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Dec 9, 2025 https://github.com/python/mypy/pull/20383#ref-issue-3474768227
1.19 Release Planning #19964 https://github.com/python/mypy/issues/19964
https://github.com/RiyaPrabhakar-git
RiyaPrabhakar-githttps://github.com/RiyaPrabhakar-git
GC-Content-Calculatorhttps://github.com/users/RiyaPrabhakar-git/projects/1
Dec 12, 2025https://github.com/python/mypy/pull/20383#event-21527457667
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
GC-Content-Calculatorhttps://github.com/users/RiyaPrabhakar-git/projects/1
Dec 12, 2025https://github.com/python/mypy/pull/20383#event-21527457761
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
GC-Content-Calculatorhttps://github.com/users/RiyaPrabhakar-git/projects/1
Dec 12, 2025https://github.com/python/mypy/pull/20383#event-21527457839
hauntsaninjahttps://github.com/hauntsaninja
Dec 13, 2025 https://github.com/python/mypy/pull/20383#ref-commit-a4b31a2
https://github.com/A5rocks
https://github.com/hauntsaninja
Allowhttps://github.com/python/mypy/commit/a4b31a26788b70c4a2a19adbafa2bbda43dc2e8b
types.NoneTypehttps://github.com/python/mypy/commit/a4b31a26788b70c4a2a19adbafa2bbda43dc2e8b
in match cases (https://github.com/python/mypy/commit/a4b31a26788b70c4a2a19adbafa2bbda43dc2e8b
#20383https://github.com/python/mypy/pull/20383
)https://github.com/python/mypy/commit/a4b31a26788b70c4a2a19adbafa2bbda43dc2e8b
a4b31a2https://github.com/python/mypy/commit/a4b31a26788b70c4a2a19adbafa2bbda43dc2e8b
#20367https://github.com/python/mypy/issues/20367
736-c41-2c1-e464fc974https://github.com/736-c41-2c1-e464fc974
Jan 15, 2026 https://github.com/python/mypy/pull/20383#ref-commit-c249c58
https://github.com/736-c41-2c1-e464fc974
chore(deps): update root dev dependencies (minor) (minor)https://github.com/Swiss-Armed-Forces/Loom/commit/c249c5881598e2faf9bef708514ab95193a1337f
c249c58https://github.com/Swiss-Armed-Forces/Loom/commit/c249c5881598e2faf9bef708514ab95193a1337f
736-c41-2c1-e464fc974https://github.com/736-c41-2c1-e464fc974
Jan 15, 2026 https://github.com/python/mypy/pull/20383#ref-commit-1ada5d2
https://github.com/736-c41-2c1-e464fc974
Merge branch 'renovate/root-dev-dependencies' into 'main'https://github.com/Swiss-Armed-Forces/Loom/commit/1ada5d2c4f5a68d4686ff7ccd59cd8726dccff70
1ada5d2https://github.com/Swiss-Armed-Forces/Loom/commit/1ada5d2c4f5a68d4686ff7ccd59cd8726dccff70
nicopausshttps://github.com/nicopauss
Apr 1, 2026 https://github.com/python/mypy/pull/20383#ref-commit-ba3e688
https://github.com/renovate-bot
https://github.com/nicopauss
chore(deps): update dependency mypy to v1.19.1 (2024.6)https://github.com/Intersec/lib-common/commit/ba3e688da504d84eadd2ea5eeda265c6c1662fed
ba3e688https://github.com/Intersec/lib-common/commit/ba3e688da504d84eadd2ea5eeda265c6c1662fed
https://github.com/python/mypy/blob/HEAD/CHANGELOG.md#Mypy-1191https://github.com/python/mypy/blob/HEAD/CHANGELOG.md#Mypy-1191
python/mypy#20345https://github.com/python/mypy/pull/20345
python/mypy#20372https://github.com/python/mypy/pull/20372
python/mypy#20383https://github.com/python/mypy/pull/20383
python/mypy#20371https://github.com/python/mypy/pull/20371
python/mypy#20323https://github.com/python/mypy/pull/20323
python/mypy#20333https://github.com/python/mypy/pull/20333
python/mypy#20334https://github.com/python/mypy/pull/20334
python/mypy#20389https://github.com/python/mypy/pull/20389
python/mypy@v1.18.2...v1.19.0https://github.com/python/mypy/compare/v1.18.2...v1.19.0
https://github.com/python/mypy/blob/HEAD/CHANGELOG.md#Mypy-1182https://github.com/python/mypy/blob/HEAD/CHANGELOG.md#Mypy-1182
python/mypy#19845https://github.com/python/mypy/pull/19845
python/mypy#19733https://github.com/python/mypy/pull/19733
python/mypy#19846https://github.com/python/mypy/pull/19846
python/mypy@v1.17.1...v1.18.1https://github.com/python/mypy/compare/v1.17.1...v1.18.1
https://github.com/python/mypy/blob/HEAD/CHANGELOG.md#Mypy-1171https://github.com/python/mypy/blob/HEAD/CHANGELOG.md#Mypy-1171
python/mypy#19485https://github.com/python/mypy/pull/19485
python/mypy#19428https://github.com/python/mypy/pull/19428
python/mypy#19453https://github.com/python/mypy/pull/19453
python/mypy@v1.16.1...v1.17.0https://github.com/python/mypy/compare/v1.16.1...v1.17.0
python/mypy@v1.16.0...v1.16.1https://github.com/python/mypy/compare/v1.16.0...v1.16.1
python/mypy@v1.15.0...v1.16.0https://github.com/python/mypy/compare/v1.15.0...v1.16.0
python/mypy@v1.14.1...v1.15.0https://github.com/python/mypy/compare/v1.14.1...v1.15.0
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%2F20383
https://github.com/ilevkivskyi
ilevkivskyi https://github.com/ilevkivskyi
https://github.com/python/mypy/pull/20383/files/ef53130b0fcc786804a9a7e3d6211a98828b62e6
[1.19 regression] Can no longer use types.NoneType() as a condition in match/case https://github.com/python/mypy/issues/20367
Please reload this pagehttps://github.com/python/mypy/pull/20383
https://github.com/A5rocks
https://github.com/ilevkivskyi
https://github.com/Gauri3010e
https://github.com/RiyaPrabhakar-git
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.