René's URL Explorer Experiment


Title: Add support for narrowing Literals using equality by Michael0x2a · Pull Request #8151 · python/mypy · GitHub

Open Graph Title: Add support for narrowing Literals using equality by Michael0x2a · Pull Request #8151 · python/mypy

X Title: Add support for narrowing Literals using equality by Michael0x2a · Pull Request #8151 · python/mypy

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

Open Graph Description: This pull request (finally) adds support for narrowing expressions using Literal types by equality, instead of just identity. For example, the following "tagged union" pattern is now supp...

X Description: This pull request (finally) adds support for narrowing expressions using Literal types by equality, instead of just identity. For example, the following "tagged union" pattern is ...

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

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:cf980527-144c-de87-89dd-0427408ee0a3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEA32:2DB972:2F8633A:3EF8ECB:6B002B32
html-safe-nonceb1793d76129fc634ddf90f7017891e6ad8f295a60e12ac7d240bbd0208004f99
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTMyOjJEQjk3MjoyRjg2MzNBOjNFRjhFQ0I6NkIwMDJCMzIiLCJ2aXNpdG9yX2lkIjoiMjMzMzk3NTIxMDAwNjQyNDM3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace519d8cf814260bbbdf4ef39920b736f3e66c78e3d00f69d48c8dabcba3bba04
hovercard-subject-tagpull_request:353343642
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/8151/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/f1a2ddecd245917c2c2eb75291164c967102fbf49559b917cbbd0f1102cfa762/python/mypy/pull/8151
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f1a2ddecd245917c2c2eb75291164c967102fbf49559b917cbbd0f1102cfa762/python/mypy/pull/8151
og:image:altThis pull request (finally) adds support for narrowing expressions using Literal types by equality, instead of just identity. For example, the following "tagged union" pattern is now supp...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMichael0x2a
hostnamegithub.com
expected-hostnamegithub.com
None7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0
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
releasef3f3a43ca095cdea3abbb394112e971f9fdb94fa
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/mypy/pull/8151#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F8151
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%2F8151
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/8151
Reloadhttps://github.com/python/mypy/pull/8151
Reloadhttps://github.com/python/mypy/pull/8151
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 requests547 (547)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
Michael0x2ahttps://github.com/Michael0x2a
python:masterhttps://github.com/python/mypy/tree/master
Michael0x2a:reachability-unify-equality-and-identityhttps://github.com/Michael0x2a/mypy/tree/reachability-unify-equality-and-identity
Conversationhttps://github.com/python/mypy/pull/8151
Commits4 (4)https://github.com/python/mypy/pull/8151/commits
Checkshttps://github.com/python/mypy/pull/8151/checks
Files changedhttps://github.com/python/mypy/pull/8151/files
Add support for narrowing Literals using equalityhttps://github.com/python/mypy/pull/8151#top
Michael0x2ahttps://github.com/Michael0x2a
python:masterhttps://github.com/python/mypy/tree/master
Michael0x2a:reachability-unify-equality-and-identityhttps://github.com/Michael0x2a/mypy/tree/reachability-unify-equality-and-identity
https://github.com/Michael0x2a
Michael0x2ahttps://github.com/Michael0x2a
Dec 16, 2019https://github.com/python/mypy/pull/8151#issue-538145477
#7944https://github.com/python/mypy/issues/7944
Please reload this pagehttps://github.com/python/mypy/pull/8151
https://github.com/Michael0x2a
Michael0x2ahttps://github.com/Michael0x2a
Dec 16, 2019https://github.com/python/mypy/pull/8151#issuecomment-565875609
#8148https://github.com/python/mypy/pull/8148
Please reload this pagehttps://github.com/python/mypy/pull/8151
Michael0x2ahttps://github.com/Michael0x2a
Dec 16, 2019 https://github.com/python/mypy/pull/8151#ref-commit-5798ba4
https://github.com/Michael0x2a
Update docs for Literal typeshttps://github.com/Michael0x2a/mypy/commit/5798ba4df298496da61dfac3cb95746f629598e7
5798ba4https://github.com/Michael0x2a/mypy/commit/5798ba4df298496da61dfac3cb95746f629598e7
python#8151https://github.com/python/mypy/pull/8151
https://pydantic-docs.helpmanual.iohttps://pydantic-docs.helpmanual.io
Michael0x2ahttps://github.com/Michael0x2a
Dec 16, 2019 https://github.com/python/mypy/pull/8151#ref-commit-9dc8757
https://github.com/Michael0x2a
Update docs for Literal typeshttps://github.com/Michael0x2a/mypy/commit/9dc8757dac9a5ac72aaa62564bc7eb1c91d6376f
9dc8757https://github.com/Michael0x2a/mypy/commit/9dc8757dac9a5ac72aaa62564bc7eb1c91d6376f
python#8151https://github.com/python/mypy/pull/8151
https://pydantic-docs.helpmanual.iohttps://pydantic-docs.helpmanual.io
https://github.com/Michael0x2a
Michael0x2ahttps://github.com/Michael0x2a
Dec 16, 2019 https://github.com/python/mypy/pull/8151#ref-pullrequest-538164112
Update docs for Literal types #8152 https://github.com/python/mypy/pull/8152
https://github.com/fluggo
fluggohttps://github.com/fluggo
Dec 16, 2019https://github.com/python/mypy/pull/8151#issuecomment-566128075
Please reload this pagehttps://github.com/python/mypy/pull/8151
https://github.com/Michael0x2a
Michael0x2ahttps://github.com/Michael0x2a
Dec 16, 2019https://github.com/python/mypy/pull/8151#issuecomment-566159511
Please reload this pagehttps://github.com/python/mypy/pull/8151
@fluggohttps://github.com/fluggo
Please reload this pagehttps://github.com/python/mypy/pull/8151
https://github.com/fluggo
fluggohttps://github.com/fluggo
Dec 20, 2019https://github.com/python/mypy/pull/8151#issuecomment-567967619
Please reload this pagehttps://github.com/python/mypy/pull/8151
XmlHttpRequesthttps://github.com/microsoft/TypeScript/blob/master/src/lib/dom.generated.d.ts#L18829
Please reload this pagehttps://github.com/python/mypy/pull/8151
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Dec 20, 2019https://github.com/python/mypy/pull/8151#issuecomment-568061480
#8148https://github.com/python/mypy/pull/8148
Please reload this pagehttps://github.com/python/mypy/pull/8151
https://github.com/Michael0x2a
Add support for narrowing Literals using equalityhttps://github.com/python/mypy/pull/8151/commits/f82a019e18d2810c72b9f98fb2181987ddc29fc9
f82a019https://github.com/python/mypy/pull/8151/commits/f82a019e18d2810c72b9f98fb2181987ddc29fc9
python#7944https://github.com/python/mypy/issues/7944
https://github.com/Michael0x2a
Michael0x2ahttps://github.com/Michael0x2a
force-pushedhttps://github.com/python/mypy/compare/77622f9a34cc91125f50149fbcb0b6ff09bd337a..f82a019e18d2810c72b9f98fb2181987ddc29fc9
77622f9https://github.com/python/mypy/commit/77622f9a34cc91125f50149fbcb0b6ff09bd337a
f82a019https://github.com/python/mypy/commit/f82a019e18d2810c72b9f98fb2181987ddc29fc9
Compare https://github.com/python/mypy/compare/77622f9a34cc91125f50149fbcb0b6ff09bd337a..f82a019e18d2810c72b9f98fb2181987ddc29fc9
December 25, 2019 04:49https://github.com/python/mypy/pull/8151#event-2907558616
https://github.com/Michael0x2a
Michael0x2ahttps://github.com/Michael0x2a
Jan 3, 2020https://github.com/python/mypy/pull/8151#issuecomment-570712881
@ilevkivskyihttps://github.com/ilevkivskyi
Please reload this pagehttps://github.com/python/mypy/pull/8151
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Jan 6, 2020 https://github.com/python/mypy/pull/8151#pullrequestreview-338690432
View reviewed changes https://github.com/python/mypy/pull/8151/files/f82a019e18d2810c72b9f98fb2181987ddc29fc9
ilevkivskyihttps://github.com/ilevkivskyi
https://github.com/python/mypy/pull/8151#pullrequestreview-338690432
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/8151
mypy/checker.pyhttps://github.com/python/mypy/pull/8151/files/f82a019e18d2810c72b9f98fb2181987ddc29fc9#diff-f96a2d6138bc6cdf2a07c4d37f6071cc25c1631afc107e277a28d5b59fc0ef04
Please reload this pagehttps://github.com/python/mypy/pull/8151
mypy/checker.pyhttps://github.com/python/mypy/pull/8151/files/f82a019e18d2810c72b9f98fb2181987ddc29fc9#diff-f96a2d6138bc6cdf2a07c4d37f6071cc25c1631afc107e277a28d5b59fc0ef04
Please reload this pagehttps://github.com/python/mypy/pull/8151
mypy/checker.pyhttps://github.com/python/mypy/pull/8151/files/f82a019e18d2810c72b9f98fb2181987ddc29fc9#diff-f96a2d6138bc6cdf2a07c4d37f6071cc25c1631afc107e277a28d5b59fc0ef04
Please reload this pagehttps://github.com/python/mypy/pull/8151
mypy/checker.pyhttps://github.com/python/mypy/pull/8151/files/f82a019e18d2810c72b9f98fb2181987ddc29fc9#diff-f96a2d6138bc6cdf2a07c4d37f6071cc25c1631afc107e277a28d5b59fc0ef04
Please reload this pagehttps://github.com/python/mypy/pull/8151
mypy/checker.pyhttps://github.com/python/mypy/pull/8151/files/f82a019e18d2810c72b9f98fb2181987ddc29fc9#diff-f96a2d6138bc6cdf2a07c4d37f6071cc25c1631afc107e277a28d5b59fc0ef04
ilevkivskyihttps://github.com/ilevkivskyi
Jan 6, 2020https://github.com/python/mypy/pull/8151#discussion_r363337719
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/8151
Michael0x2ahttps://github.com/Michael0x2a
Jan 7, 2020https://github.com/python/mypy/pull/8151#discussion_r363912500
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/8151
Michael0x2ahttps://github.com/Michael0x2a
Jan 8, 2020https://github.com/python/mypy/pull/8151#discussion_r364118377
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/8151
mypy/typeops.pyhttps://github.com/python/mypy/pull/8151/files/f82a019e18d2810c72b9f98fb2181987ddc29fc9#diff-1dce7e2a19559e2ff4e08fd46877b87c9cfec3cb5e6d465157788542948e11e4
ilevkivskyihttps://github.com/ilevkivskyi
Jan 6, 2020https://github.com/python/mypy/pull/8151#discussion_r363338165
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/8151
test-data/unit/check-narrowing.testhttps://github.com/python/mypy/pull/8151/files/f82a019e18d2810c72b9f98fb2181987ddc29fc9#diff-0413401ad6a91bc5c66579455009ba606ee0ddfb0a78278c9e53618c83b53ed5
ilevkivskyihttps://github.com/ilevkivskyi
Jan 6, 2020https://github.com/python/mypy/pull/8151#discussion_r363342084
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/8151
Michael0x2ahttps://github.com/Michael0x2a
Jan 8, 2020https://github.com/python/mypy/pull/8151#discussion_r364118671
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/8151
test-data/unit/check-narrowing.testhttps://github.com/python/mypy/pull/8151/files/f82a019e18d2810c72b9f98fb2181987ddc29fc9#diff-0413401ad6a91bc5c66579455009ba606ee0ddfb0a78278c9e53618c83b53ed5
ilevkivskyihttps://github.com/ilevkivskyi
Jan 6, 2020https://github.com/python/mypy/pull/8151#discussion_r363344337
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/8151
Michael0x2ahttps://github.com/Michael0x2a
Jan 7, 2020https://github.com/python/mypy/pull/8151#discussion_r363889879
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/8151
test-data/unit/check-narrowing.testhttps://github.com/python/mypy/pull/8151/files/f82a019e18d2810c72b9f98fb2181987ddc29fc9#diff-0413401ad6a91bc5c66579455009ba606ee0ddfb0a78278c9e53618c83b53ed5
ilevkivskyihttps://github.com/ilevkivskyi
Jan 6, 2020https://github.com/python/mypy/pull/8151#discussion_r363344843
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/8151
Michael0x2ahttps://github.com/Michael0x2a
Jan 7, 2020https://github.com/python/mypy/pull/8151#discussion_r363891898
Please reload this pagehttps://github.com/python/mypy/pull/8151
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/8151
Michael0x2ahttps://github.com/Michael0x2a
January 7, 2020 10:30https://github.com/python/mypy/pull/8151#commits-pushed-96c0292
https://github.com/Michael0x2a
Respond to code review; remove concept of 'partial' TypeMapshttps://github.com/python/mypy/pull/8151/commits/96c0292ed8d223690ee6f94666a7380c93ba2975
96c0292https://github.com/python/mypy/pull/8151/commits/96c0292ed8d223690ee6f94666a7380c93ba2975
https://github.com/Michael0x2a
Remove todo about inline functionshttps://github.com/python/mypy/pull/8151/commits/7b08bd995c04bb5a8529ec50854f28e6f98e26b1
7b08bd9https://github.com/python/mypy/pull/8151/commits/7b08bd995c04bb5a8529ec50854f28e6f98e26b1
https://github.com/Michael0x2a
Michael0x2ahttps://github.com/Michael0x2a
Jan 8, 2020https://github.com/python/mypy/pull/8151#issuecomment-571950078
Please reload this pagehttps://github.com/python/mypy/pull/8151
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Jan 8, 2020 https://github.com/python/mypy/pull/8151#pullrequestreview-339933685
View reviewed changes https://github.com/python/mypy/pull/8151/files/7b08bd995c04bb5a8529ec50854f28e6f98e26b1
ilevkivskyihttps://github.com/ilevkivskyi
https://github.com/python/mypy/pull/8151#pullrequestreview-339933685
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/8151
test-data/unit/check-enum.testhttps://github.com/python/mypy/pull/8151/files/7b08bd995c04bb5a8529ec50854f28e6f98e26b1#diff-ebc735ad8fa6eb42d5390fa4fa9ef60581764c7bbfb5eafcde16f5e40c330c84
ilevkivskyihttps://github.com/ilevkivskyi
Jan 8, 2020https://github.com/python/mypy/pull/8151#discussion_r364283562
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/8151
https://github.com/Michael0x2a
Fix test formattinghttps://github.com/python/mypy/pull/8151/commits/e2ea84c9f71eb4cf8aed5cb2eb1aa52867c9ecf7
e2ea84chttps://github.com/python/mypy/pull/8151/commits/e2ea84c9f71eb4cf8aed5cb2eb1aa52867c9ecf7
https://github.com/Michael0x2a
Michael0x2ahttps://github.com/Michael0x2a
3dce3fdhttps://github.com/python/mypy/commit/3dce3fd18e3e48c1e892951950865ea97f4ee4ed
Jan 8, 2020https://github.com/python/mypy/pull/8151#event-2931853732
https://github.com/Michael0x2a
Michael0x2ahttps://github.com/Michael0x2a
January 8, 2020 16:20https://github.com/python/mypy/pull/8151#event-2931854003
Michael0x2ahttps://github.com/Michael0x2a
Jan 8, 2020 https://github.com/python/mypy/pull/8151#ref-commit-7055725
https://github.com/Michael0x2a
Update docs for Literal types (https://github.com/python/mypy/commit/70557254ad6fee39469562a627c58eb9c3991c23
#8152https://github.com/python/mypy/pull/8152
)https://github.com/python/mypy/commit/70557254ad6fee39469562a627c58eb9c3991c23
7055725https://github.com/python/mypy/commit/70557254ad6fee39469562a627c58eb9c3991c23
#8151https://github.com/python/mypy/pull/8151
hauntsaninjahttps://github.com/hauntsaninja
Jan 9, 2020 https://github.com/python/mypy/pull/8151#ref-commit-b844526
Narrow types for walrus in identity comparisonhttps://github.com/hauntsaninja/mypy/commit/b844526bb4f807b09c7d90ba5c4b5d567186599e
b844526https://github.com/hauntsaninja/mypy/commit/b844526bb4f807b09c7d90ba5c4b5d567186599e
python#8236https://github.com/python/mypy/issues/8236
python#8151https://github.com/python/mypy/pull/8151
hauntsaninjahttps://github.com/hauntsaninja
Jan 9, 2020 https://github.com/python/mypy/pull/8151#ref-commit-29db473
Narrow types for walrus in identity comparisonhttps://github.com/hauntsaninja/mypy/commit/29db473af283ab20c17fa4d10407e3234d9a8a01
29db473https://github.com/hauntsaninja/mypy/commit/29db473af283ab20c17fa4d10407e3234d9a8a01
python#8236https://github.com/python/mypy/issues/8236
python#8151https://github.com/python/mypy/pull/8151
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Nov 14, 2020 https://github.com/python/mypy/pull/8151#ref-issue-624474183
TypedDict has no key when checking for key #8887 https://github.com/python/mypy/issues/8887
https://github.com/devin-git
devin-githttps://github.com/devin-git
Sep 9, 2021 https://github.com/python/mypy/pull/8151#ref-issue-991893760
Narrowing Union[TypedDict] with in keyword #11080 https://github.com/python/mypy/issues/11080
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%2F8151
https://github.com/ilevkivskyi
ilevkivskyi https://github.com/ilevkivskyi
https://github.com/python/mypy/pull/8151/files/7b08bd995c04bb5a8529ec50854f28e6f98e26b1
Please reload this pagehttps://github.com/python/mypy/pull/8151
Narrowing unions with Literal and TypedDict https://github.com/python/mypy/issues/7944
Please reload this pagehttps://github.com/python/mypy/pull/8151
https://github.com/Michael0x2a
https://github.com/fluggo
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.