René's URL Explorer Experiment


Title: [mypyc] fix: inappropriate `None`s in f-strings by BobTheBuidler · Pull Request #19846 · python/mypy · GitHub

Open Graph Title: [mypyc] fix: inappropriate `None`s in f-strings by BobTheBuidler · Pull Request #19846 · python/mypy

X Title: [mypyc] fix: inappropriate `None`s in f-strings by BobTheBuidler · Pull Request #19846 · python/mypy

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

Open Graph Description: if a variable is Final but the value is not yet known at compile-time, and that variable is used as an input to an f-string, the f-string will incorrectly contain "None" Fixes mypyc#1140

X Description: if a variable is Final but the value is not yet known at compile-time, and that variable is used as an input to an f-string, the f-string will incorrectly contain "None" Fixes mypyc#1140

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

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:d1e187ac-ff50-f6d4-2f13-5da71e394eef
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA0F8:19D7AD:3625675:4C49F7F:6A5F996F
html-safe-nonce3025d4f30d1b482bb9fdc3f421512497c228f2973c9e3ce2700a5d0e327b08ac
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMEY4OjE5RDdBRDozNjI1Njc1OjRDNDlGN0Y6NkE1Rjk5NkYiLCJ2aXNpdG9yX2lkIjoiNzc4MjcyMDk2ODI0NzQ0OTk2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0cae0b7bee5f912f4e17c727fcf37512b7a702ede10142f03f9f1774a01b10b2
hovercard-subject-tagpull_request:2826283665
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/19846/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/3c57efab4fe4e9a0fdb5b74a0a5d7f9059a52cb56b919a2f2d51b96f4c99b711/python/mypy/pull/19846
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3c57efab4fe4e9a0fdb5b74a0a5d7f9059a52cb56b919a2f2d51b96f4c99b711/python/mypy/pull/19846
og:image:altif a variable is Final but the value is not yet known at compile-time, and that variable is used as an input to an f-string, the f-string will incorrectly contain "None" Fixes mypyc#1140
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameBobTheBuidler
hostnamegithub.com
expected-hostnamegithub.com
None9353cc7b48460319d80daeeb399e4919b4abcfe6f78d37c7b457924d164a40b1
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
release755d210ae728fcf699d7ab1cdd9866592be6ad35
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/mypy/pull/19846#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19846
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%2F19846
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/19846
Reloadhttps://github.com/python/mypy/pull/19846
Reloadhttps://github.com/python/mypy/pull/19846
Please reload this pagehttps://github.com/python/mypy/pull/19846
python https://github.com/python
mypyhttps://github.com/python/mypy
Please reload this pagehttps://github.com/python/mypy/pull/19846
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
hauntsaninjahttps://github.com/hauntsaninja
python:masterhttps://github.com/python/mypy/tree/master
BobTheBuidler:patch-7https://github.com/BobTheBuidler/mypy/tree/patch-7
Conversationhttps://github.com/python/mypy/pull/19846
Commits4 (4)https://github.com/python/mypy/pull/19846/commits
Checkshttps://github.com/python/mypy/pull/19846/checks
Files changedhttps://github.com/python/mypy/pull/19846/files
[mypyc] fix: inappropriate Nones in f-stringshttps://github.com/python/mypy/pull/19846#top
hauntsaninjahttps://github.com/hauntsaninja
python:masterhttps://github.com/python/mypy/tree/master
BobTheBuidler:patch-7https://github.com/BobTheBuidler/mypy/tree/patch-7
https://github.com/BobTheBuidler
BobTheBuidlerhttps://github.com/BobTheBuidler
Sep 14, 2025https://github.com/python/mypy/pull/19846#issue-3414539140
mypyc#1140https://github.com/mypyc/mypyc/issues/1140
Please reload this pagehttps://github.com/python/mypy/pull/19846
https://github.com/BobTheBuidler
[mypyc] fix: inappropriate Nones in f-stringshttps://github.com/python/mypy/pull/19846/commits/2a1eb1cdeeb414b27404da0a802194dc45e050a8
2a1eb1chttps://github.com/python/mypy/pull/19846/commits/2a1eb1cdeeb414b27404da0a802194dc45e050a8
https://github.com/BobTheBuidler
BobTheBuidlerhttps://github.com/BobTheBuidler
Sep 14, 2025 https://github.com/python/mypy/pull/19846#ref-issue-3368462392
1.18 Release Planning #19764 https://github.com/python/mypy/issues/19764
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
Sep 15, 2025 https://github.com/python/mypy/pull/19846#pullrequestreview-3224791529
View reviewed changes https://github.com/python/mypy/pull/19846/files/2a1eb1cdeeb414b27404da0a802194dc45e050a8
JukkaLhttps://github.com/JukkaL
https://github.com/python/mypy/pull/19846#pullrequestreview-3224791529
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/19846
BobTheBuidlerhttps://github.com/BobTheBuidler
September 15, 2025 20:50https://github.com/python/mypy/pull/19846#commits-pushed-f4a851a
https://github.com/BobTheBuidler
add run testhttps://github.com/python/mypy/pull/19846/commits/f4a851a98e4c02a31362825341ca36f8ccec9081
f4a851ahttps://github.com/python/mypy/pull/19846/commits/f4a851a98e4c02a31362825341ca36f8ccec9081
https://github.com/BobTheBuidler
Merge branch 'master' into patch-7https://github.com/python/mypy/pull/19846/commits/6389f30307f76d419a8dbff57485ba655a6f6c77
6389f30https://github.com/python/mypy/pull/19846/commits/6389f30307f76d419a8dbff57485ba655a6f6c77
https://github.com/BobTheBuidler
Update run-strings.testhttps://github.com/python/mypy/pull/19846/commits/c68965fa5652505601106dd55293aa29b3f64345
c68965fhttps://github.com/python/mypy/pull/19846/commits/c68965fa5652505601106dd55293aa29b3f64345
https://github.com/BobTheBuidler
BobTheBuidlerhttps://github.com/BobTheBuidler
Sep 16, 2025https://github.com/python/mypy/pull/19846#issuecomment-3294466928
Please reload this pagehttps://github.com/python/mypy/pull/19846
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Sep 16, 2025 https://github.com/python/mypy/pull/19846#pullrequestreview-3226764900
View reviewed changes https://github.com/python/mypy/pull/19846/files/c68965fa5652505601106dd55293aa29b3f64345
hauntsaninjahttps://github.com/hauntsaninja
Please reload this pagehttps://github.com/python/mypy/pull/19846
https://github.com/python/mypy/pull/19846#pullrequestreview-3226764900
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/19846
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
dce8e1chttps://github.com/python/mypy/commit/dce8e1c407ccaa9effebbb1ed09fbf0e7070636d
Sep 16, 2025https://github.com/python/mypy/pull/19846#event-19713675602
Please reload this pagehttps://github.com/python/mypy/pull/19846
https://github.com/BobTheBuidler
BobTheBuidlerhttps://github.com/BobTheBuidler
Sep 16, 2025 https://github.com/python/mypy/pull/19846#ref-pullrequest-3420033697
fix: something Shantanu found #19859 https://github.com/python/mypy/pull/19859
KevinRK29https://github.com/KevinRK29
Sep 16, 2025 https://github.com/python/mypy/pull/19846#ref-commit-9d794b5
https://github.com/BobTheBuidler
https://github.com/KevinRK29
[mypyc] fix: inappropriatehttps://github.com/python/mypy/commit/9d794b57d9c5b03d61caa3286756c05e0ae3021b
Nonehttps://github.com/python/mypy/commit/9d794b57d9c5b03d61caa3286756c05e0ae3021b
s in f-strings (https://github.com/python/mypy/commit/9d794b57d9c5b03d61caa3286756c05e0ae3021b
#19846https://github.com/python/mypy/pull/19846
)https://github.com/python/mypy/commit/9d794b57d9c5b03d61caa3286756c05e0ae3021b
9d794b5https://github.com/python/mypy/commit/9d794b57d9c5b03d61caa3286756c05e0ae3021b
mypyc/mypyc#1140https://github.com/mypyc/mypyc/issues/1140
dce8e1chttps://github.com/python/mypy/commit/dce8e1c407ccaa9effebbb1ed09fbf0e7070636d
ilevkivskyihttps://github.com/ilevkivskyi
Sep 25, 2025 https://github.com/python/mypy/pull/19846#ref-commit-19697af
https://github.com/BobTheBuidler
fix: something Shantanu found (https://github.com/python/mypy/commit/19697af9051707b4db55bc2d5301436d872f452c
#19859https://github.com/python/mypy/pull/19859
)https://github.com/python/mypy/commit/19697af9051707b4db55bc2d5301436d872f452c
19697afhttps://github.com/python/mypy/commit/19697af9051707b4db55bc2d5301436d872f452c
@hauntsaninjahttps://github.com/hauntsaninja
#19846https://github.com/python/mypy/pull/19846
https://github.com/BobTheBuidler
BobTheBuidlerhttps://github.com/BobTheBuidler
September 26, 2025 18:06https://github.com/python/mypy/pull/19846#event-19949831406
736-c41-2c1-e464fc974https://github.com/736-c41-2c1-e464fc974
Jan 15, 2026 https://github.com/python/mypy/pull/19846#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/19846#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/19846#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%2F19846
https://github.com/JukkaL
JukkaL https://github.com/JukkaL
https://github.com/python/mypy/pull/19846/files/2a1eb1cdeeb414b27404da0a802194dc45e050a8
https://github.com/hauntsaninja
hauntsaninja https://github.com/hauntsaninja
https://github.com/python/mypy/pull/19846/files/c68965fa5652505601106dd55293aa29b3f64345
BUG: inappropriate Nones in f-strings https://github.com/mypyc/mypyc/issues/1140
Please reload this pagehttps://github.com/python/mypy/pull/19846
https://github.com/BobTheBuidler
https://github.com/JukkaL
https://github.com/hauntsaninja
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.