René's URL Explorer Experiment


Title: Retain `None` as constraints bottom if no bottoms were provided by sterliakov · Pull Request #19485 · python/mypy · GitHub

Open Graph Title: Retain `None` as constraints bottom if no bottoms were provided by sterliakov · Pull Request #19485 · python/mypy

X Title: Retain `None` as constraints bottom if no bottoms were provided by sterliakov · Pull Request #19485 · python/mypy

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

Open Graph Description: Current version replaces None (which indicates "no items") with an empty union (=Uninhabited). This breaks inference in some cases. Fixes #19483.

X Description: Current version replaces None (which indicates "no items") with an empty union (=Uninhabited). This breaks inference in some cases. Fixes #19483.

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

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:772bc614-48b1-ea13-1803-3ea89b7de8c6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE5F6:1DF241:47C6B0E:5DFF3A8:6A5D5604
html-safe-nonce8f59cdb6ef857ff32eb4697a1551f9d5e1640ddde98bfaea00f7eeffed9c9558
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUY2OjFERjI0MTo0N0M2QjBFOjVERkYzQTg6NkE1RDU2MDQiLCJ2aXNpdG9yX2lkIjoiMTY1MDI0Njk3MDg2OTg5NjcwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac10950dd2b715947670b8abdfcb68da123dc4d111fd5cbe0049696943150547df
hovercard-subject-tagpull_request:2682313857
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/19485/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/291d34ee32469af08640544a5688c9e48f23e7dfad6b71cc05d2b2b565f5c9e9/python/mypy/pull/19485
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/291d34ee32469af08640544a5688c9e48f23e7dfad6b71cc05d2b2b565f5c9e9/python/mypy/pull/19485
og:image:altCurrent version replaces None (which indicates "no items") with an empty union (=Uninhabited). This breaks inference in some cases. Fixes #19483.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesterliakov
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
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
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/mypy/pull/19485#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19485
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
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%2F19485
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/19485
Reloadhttps://github.com/python/mypy/pull/19485
Reloadhttps://github.com/python/mypy/pull/19485
Please reload this pagehttps://github.com/python/mypy/pull/19485
python https://github.com/python
mypyhttps://github.com/python/mypy
Please reload this pagehttps://github.com/python/mypy/pull/19485
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
sterliakov:bugfix/gh-19483-recursive-context-constraintshttps://github.com/sterliakov/mypy/tree/bugfix/gh-19483-recursive-context-constraints
Conversationhttps://github.com/python/mypy/pull/19485
Commits3 (3)https://github.com/python/mypy/pull/19485/commits
Checkshttps://github.com/python/mypy/pull/19485/checks
Files changedhttps://github.com/python/mypy/pull/19485/files
Retain None as constraints bottom if no bottoms were providedhttps://github.com/python/mypy/pull/19485#top
ilevkivskyihttps://github.com/ilevkivskyi
python:masterhttps://github.com/python/mypy/tree/master
sterliakov:bugfix/gh-19483-recursive-context-constraintshttps://github.com/sterliakov/mypy/tree/bugfix/gh-19483-recursive-context-constraints
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
Jul 21, 2025https://github.com/python/mypy/pull/19485#issue-3249082340
#19483https://github.com/python/mypy/issues/19483
Please reload this pagehttps://github.com/python/mypy/pull/19485
sterliakovhttps://github.com/sterliakov
July 21, 2025 17:18https://github.com/python/mypy/pull/19485#commits-pushed-1da86bb
https://github.com/sterliakov
Retain None as constraints bottom if no bottoms were providedhttps://github.com/python/mypy/pull/19485/commits/1da86bbb7c71be06fae5db85162c923b9092aa87
1da86bbhttps://github.com/python/mypy/pull/19485/commits/1da86bbb7c71be06fae5db85162c923b9092aa87
https://github.com/sterliakov
Add testcasehttps://github.com/python/mypy/pull/19485/commits/2ca095d1d746ae14ff9e62fdc0022d5fab4a9801
2ca095dhttps://github.com/python/mypy/pull/19485/commits/2ca095d1d746ae14ff9e62fdc0022d5fab4a9801
https://github.com/sterliakov
Stop testing iterables for truthiness!https://github.com/python/mypy/pull/19485/commits/82f3c7421fdd11422885698a33af2a64f63084ba
82f3c74https://github.com/python/mypy/pull/19485/commits/82f3c7421fdd11422885698a33af2a64f63084ba
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Jul 21, 2025https://github.com/python/mypy/pull/19485#issuecomment-3097386912
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://github.com/python/mypy/pull/19485
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
Jul 21, 2025https://github.com/python/mypy/pull/19485#issuecomment-3097588814
Please reload this pagehttps://github.com/python/mypy/pull/19485
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
ilevkivskyihttps://github.com/ilevkivskyi
July 21, 2025 17:10https://github.com/python/mypy/pull/19485#event-18733469316
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Jul 21, 2025 https://github.com/python/mypy/pull/19485#ref-issue-3249418838
Check #19485 sterliakov/mypy-issues#120 https://github.com/sterliakov/mypy-issues/issues/120
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Jul 21, 2025 https://github.com/python/mypy/pull/19485#pullrequestreview-3039250536
View reviewed changes https://github.com/python/mypy/pull/19485/files/82f3c7421fdd11422885698a33af2a64f63084ba
ilevkivskyihttps://github.com/ilevkivskyi
https://github.com/python/mypy/pull/19485#pullrequestreview-3039250536
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/19485
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
f42c936https://github.com/python/mypy/commit/f42c93685521cb276fd59acdeaedc1d1b1148204
Jul 21, 2025https://github.com/python/mypy/pull/19485#event-18734723103
Please reload this pagehttps://github.com/python/mypy/pull/19485
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
Jul 21, 2025https://github.com/python/mypy/pull/19485#issuecomment-3097955254
Please reload this pagehttps://github.com/python/mypy/pull/19485
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Jul 22, 2025https://github.com/python/mypy/pull/19485#issuecomment-3100063668
Please reload this pagehttps://github.com/python/mypy/pull/19485
hauntsaninjahttps://github.com/hauntsaninja
Jul 27, 2025 https://github.com/python/mypy/pull/19485#ref-commit-933c913
https://github.com/sterliakov
https://github.com/hauntsaninja
Retainhttps://github.com/python/mypy/commit/933c913fbe6d2fbf277ff8d6b2f2298f0f84be64
Nonehttps://github.com/python/mypy/commit/933c913fbe6d2fbf277ff8d6b2f2298f0f84be64
as constraints bottom if no bottoms were provided (https://github.com/python/mypy/commit/933c913fbe6d2fbf277ff8d6b2f2298f0f84be64
#19485https://github.com/python/mypy/pull/19485
)https://github.com/python/mypy/commit/933c913fbe6d2fbf277ff8d6b2f2298f0f84be64
933c913https://github.com/python/mypy/commit/933c913fbe6d2fbf277ff8d6b2f2298f0f84be64
#19483https://github.com/python/mypy/issues/19483
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Jul 27, 2025 https://github.com/python/mypy/pull/19485#ref-issue-3150899916
1.17 Release Planning #19306 https://github.com/python/mypy/issues/19306
736-c41-2c1-e464fc974https://github.com/736-c41-2c1-e464fc974
Jan 15, 2026 https://github.com/python/mypy/pull/19485#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/19485#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/19485#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%2F19485
https://github.com/ilevkivskyi
ilevkivskyi https://github.com/ilevkivskyi
https://github.com/python/mypy/pull/19485/files/82f3c7421fdd11422885698a33af2a64f63084ba
1.17.0 regression: dict literals incompatible with Sequence[TypedDict] https://github.com/python/mypy/issues/19483
Please reload this pagehttps://github.com/python/mypy/pull/19485
https://github.com/sterliakov
https://github.com/hauntsaninja
https://github.com/ilevkivskyi
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.