René's URL Explorer Experiment


Title: 'in' can narrow TypedDict unions by ikonst · Pull Request #13838 · python/mypy · GitHub

Open Graph Title: 'in' can narrow TypedDict unions by ikonst · Pull Request #13838 · python/mypy

X Title: 'in' can narrow TypedDict unions by ikonst · Pull Request #13838 · python/mypy

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

Open Graph Description: in could narrow unions of TypeDicts, e.g. class A(TypedDict) foo: int @final class B(TypedDict): bar: int union: Union[A, B] = ... value: int if 'foo' in union: # Cannot be a B as...

X Description: in could narrow unions of TypeDicts, e.g. class A(TypedDict) foo: int @final class B(TypedDict): bar: int union: Union[A, B] = ... value: int if 'foo' in union: # Cannot b...

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

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:bf8a9a6c-b6cc-d12b-180c-0998098c5156
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8C5E:11BB24:2236092:2E72CD0:6B002399
html-safe-nonceef8af58c577b21c72cae48571460031c07a09afdc7b38711c470d89ae6f7f843
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzVFOjExQkIyNDoyMjM2MDkyOjJFNzJDRDA6NkIwMDIzOTkiLCJ2aXNpdG9yX2lkIjoiNDk2OTI2NTk1MzQwMjUyODY2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac12f37bf9c321107af610d88c15b433adea4338a19d6523c9c655a0a7acc93a8a
hovercard-subject-tagpull_request:1080914576
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/13838/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/ee238a014a3e4472d82e049e742f50b45090458628dcbbd84dc92d90278249ef/python/mypy/pull/13838
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ee238a014a3e4472d82e049e742f50b45090458628dcbbd84dc92d90278249ef/python/mypy/pull/13838
og:image:altin could narrow unions of TypeDicts, e.g. class A(TypedDict) foo: int @final class B(TypedDict): bar: int union: Union[A, B] = ... value: int if 'foo' in union: # Cannot be a B as...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameikonst
hostnamegithub.com
expected-hostnamegithub.com
None4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0
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
release44c658b24abf00491fb7ae5f56d42c9f38cbeab2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/mypy/pull/13838#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F13838
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%2F13838
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/13838
Reloadhttps://github.com/python/mypy/pull/13838
Reloadhttps://github.com/python/mypy/pull/13838
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 requests546 (546)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
hauntsaninjahttps://github.com/hauntsaninja
python:masterhttps://github.com/python/mypy/tree/master
ikonst:typed-dict-in-type-narrowinghttps://github.com/ikonst/mypy/tree/typed-dict-in-type-narrowing
Conversationhttps://github.com/python/mypy/pull/13838
Commits23 (23)https://github.com/python/mypy/pull/13838/commits
Checkshttps://github.com/python/mypy/pull/13838/checks
Files changedhttps://github.com/python/mypy/pull/13838/files
'in' can narrow TypedDict unionshttps://github.com/python/mypy/pull/13838#top
hauntsaninjahttps://github.com/hauntsaninja
python:masterhttps://github.com/python/mypy/tree/master
ikonst:typed-dict-in-type-narrowinghttps://github.com/ikonst/mypy/tree/typed-dict-in-type-narrowing
https://github.com/ikonst
ikonsthttps://github.com/ikonst
Oct 8, 2022https://github.com/python/mypy/pull/13838#issue-1401812276
Please reload this pagehttps://github.com/python/mypy/pull/13838
Please reload this pagehttps://github.com/python/mypy/pull/13838
https://github.com/ikonst
ikonsthttps://github.com/ikonst
force-pushedhttps://github.com/python/mypy/compare/e714a52e2863f32a43aefb735c6b809a34de24aa..4642a9c480d4f0604f9fed03ddd655ca8d8a3704
e714a52https://github.com/python/mypy/commit/e714a52e2863f32a43aefb735c6b809a34de24aa
4642a9chttps://github.com/python/mypy/commit/4642a9c480d4f0604f9fed03ddd655ca8d8a3704
Compare https://github.com/python/mypy/compare/e714a52e2863f32a43aefb735c6b809a34de24aa..4642a9c480d4f0604f9fed03ddd655ca8d8a3704
October 8, 2022 04:03https://github.com/python/mypy/pull/13838#event-7547407217
https://github.com/ikonst
ikonsthttps://github.com/ikonst
Oct 8, 2022https://github.com/python/mypy/pull/13838#issuecomment-1272218935
Please reload this pagehttps://github.com/python/mypy/pull/13838
#7981https://github.com/python/mypy/issues/7981
#13802https://github.com/python/mypy/issues/13802
Please reload this pagehttps://github.com/python/mypy/pull/13838
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F13838
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F13838
https://github.com/ikonst
ikonsthttps://github.com/ikonst
October 10, 2022 03:58https://github.com/python/mypy/pull/13838#event-7550664826
https://github.com/ikonst
ikonsthttps://github.com/ikonst
force-pushedhttps://github.com/python/mypy/compare/c6f793e84e1347a0c2b6f95b0e715832d926afd7..4617bf80ee69192a57dc11a98ae6f91fe3ce921c
c6f793ehttps://github.com/python/mypy/commit/c6f793e84e1347a0c2b6f95b0e715832d926afd7
4617bf8https://github.com/python/mypy/commit/4617bf80ee69192a57dc11a98ae6f91fe3ce921c
Compare https://github.com/python/mypy/compare/c6f793e84e1347a0c2b6f95b0e715832d926afd7..4617bf80ee69192a57dc11a98ae6f91fe3ce921c
October 15, 2022 03:11https://github.com/python/mypy/pull/13838#event-7594336043
https://github.com/ikonst
'in' can narrow TypedDict unionshttps://github.com/python/mypy/pull/13838/commits/ca873608e2f71a0c25349ef1c1faf6f5a6d40a16
ca87360https://github.com/python/mypy/pull/13838/commits/ca873608e2f71a0c25349ef1c1faf6f5a6d40a16
https://github.com/ikonst
ikonsthttps://github.com/ikonst
force-pushedhttps://github.com/python/mypy/compare/4617bf80ee69192a57dc11a98ae6f91fe3ce921c..ca873608e2f71a0c25349ef1c1faf6f5a6d40a16
4617bf8https://github.com/python/mypy/commit/4617bf80ee69192a57dc11a98ae6f91fe3ce921c
ca87360https://github.com/python/mypy/commit/ca873608e2f71a0c25349ef1c1faf6f5a6d40a16
Compare https://github.com/python/mypy/compare/4617bf80ee69192a57dc11a98ae6f91fe3ce921c..ca873608e2f71a0c25349ef1c1faf6f5a6d40a16
October 15, 2022 03:12https://github.com/python/mypy/pull/13838#event-7594336928
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F13838
https://github.com/ikonst
take care of TypeVarhttps://github.com/python/mypy/pull/13838/commits/2a733252e34c3d9d3f78ede4264ea47a7d5101e1
2a73325https://github.com/python/mypy/pull/13838/commits/2a733252e34c3d9d3f78ede4264ea47a7d5101e1
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F13838
https://github.com/ikonst
take care of totalityhttps://github.com/python/mypy/pull/13838/commits/9671a695663bd3a17f8899baef2e9d84addefd7e
9671a69https://github.com/python/mypy/pull/13838/commits/9671a695663bd3a17f8899baef2e9d84addefd7e
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F13838
ikonsthttps://github.com/ikonst
October 15, 2022 09:31https://github.com/python/mypy/pull/13838#commits-pushed-0b3701b
https://github.com/ikonst
add missing assert_type fixturehttps://github.com/python/mypy/pull/13838/commits/0b3701b80ccdba6b6d98edb9fe78e102e3457f54
0b3701bhttps://github.com/python/mypy/pull/13838/commits/0b3701b80ccdba6b6d98edb9fe78e102e3457f54
https://github.com/ikonst
rename tests slightlyhttps://github.com/python/mypy/pull/13838/commits/1f4224ae1bcc005b313dfb3f1cf1a3a8208541fe
1f4224ahttps://github.com/python/mypy/pull/13838/commits/1f4224ae1bcc005b313dfb3f1cf1a3a8208541fe
https://github.com/ikonst
ikonsthttps://github.com/ikonst
Oct 15, 2022https://github.com/python/mypy/pull/13838#issuecomment-1279748465
@hauntsaninjahttps://github.com/hauntsaninja
Please reload this pagehttps://github.com/python/mypy/pull/13838
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F13838
https://github.com/ikonst
fix unintentional changes to typing-typeddicthttps://github.com/python/mypy/pull/13838/commits/e67c6f8b93c8dfb7084f88f147feaca37f0321d2
e67c6f8https://github.com/python/mypy/pull/13838/commits/e67c6f8b93c8dfb7084f88f147feaca37f0321d2
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F13838
ikonsthttps://github.com/ikonst
October 15, 2022 12:44https://github.com/python/mypy/pull/13838#commits-pushed-88e2c9f
https://github.com/ikonst
add testOperatorContainsNarrowsTypedDicts_unionWithListhttps://github.com/python/mypy/pull/13838/commits/88e2c9f37340563d2496fccaff158494ed9cf3bf
88e2c9fhttps://github.com/python/mypy/pull/13838/commits/88e2c9f37340563d2496fccaff158494ed9cf3bf
https://github.com/ikonst
respect final-ity of TypedDicthttps://github.com/python/mypy/pull/13838/commits/f799344581f0b899670ba70da84f57d1880e1470
f799344https://github.com/python/mypy/pull/13838/commits/f799344581f0b899670ba70da84f57d1880e1470
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F13838
https://github.com/ikonst
ikonsthttps://github.com/ikonst
Oct 15, 2022https://github.com/python/mypy/pull/13838#issuecomment-1279793253
Please reload this pagehttps://github.com/python/mypy/pull/13838
https://github.com/Rapptz/discord.py/blob/3bca40352ecfa5b219bae0527252ee5d296113e7/discord/client.py#L1755https://github.com/Rapptz/discord.py/blob/3bca40352ecfa5b219bae0527252ee5d296113e7/discord/client.py#L1755
Please reload this pagehttps://github.com/python/mypy/pull/13838
https://github.com/ikonst
remove bogus additionhttps://github.com/python/mypy/pull/13838/commits/20a2e6695597d6ee7e55ef7201f89ed8406f3f77
20a2e66https://github.com/python/mypy/pull/13838/commits/20a2e6695597d6ee7e55ef7201f89ed8406f3f77
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F13838
https://github.com/ikonst
Merge branch 'master' into typed-dict-in-type-narrowinghttps://github.com/python/mypy/pull/13838/commits/b4dc248e56de5ad60eb87ae54f5a1fc96e5b2e20
b4dc248https://github.com/python/mypy/pull/13838/commits/b4dc248e56de5ad60eb87ae54f5a1fc96e5b2e20
https://github.com/ikonst
ikonsthttps://github.com/ikonst
Oct 24, 2022https://github.com/python/mypy/pull/13838#issuecomment-1289586740
@sobolevnhttps://github.com/sobolevn
Please reload this pagehttps://github.com/python/mypy/pull/13838
https://github.com/ikonst
Merge branch 'master' into typed-dict-in-type-narrowinghttps://github.com/python/mypy/pull/13838/commits/a57f580020dd8643be1f66e42a9adc1717c1de16
a57f580https://github.com/python/mypy/pull/13838/commits/a57f580020dd8643be1f66e42a9adc1717c1de16
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F13838
https://github.com/ikonst
ikonsthttps://github.com/ikonst
Nov 2, 2022https://github.com/python/mypy/pull/13838#issuecomment-1301180943
@hauntsaninjahttps://github.com/hauntsaninja
Please reload this pagehttps://github.com/python/mypy/pull/13838
https://github.com/ikonst
Merge branch 'master' into typed-dict-in-type-narrowinghttps://github.com/python/mypy/pull/13838/commits/2807feb19e3da1236e1c6c09a164e89359494e69
2807febhttps://github.com/python/mypy/pull/13838/commits/2807feb19e3da1236e1c6c09a164e89359494e69
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F13838
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Nov 3, 2022 https://github.com/python/mypy/pull/13838#pullrequestreview-1166200110
View reviewed changes https://github.com/python/mypy/pull/13838/files/2807feb19e3da1236e1c6c09a164e89359494e69
hauntsaninjahttps://github.com/hauntsaninja
https://github.com/python/mypy/pull/13838#pullrequestreview-1166200110
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/13838
test-data/unit/check-typeddict.testhttps://github.com/python/mypy/pull/13838/files/2807feb19e3da1236e1c6c09a164e89359494e69#diff-1db589b0c06e93bf0f492fb32a043ad16c054379c19cd39da57960e98c4b8be0
hauntsaninjahttps://github.com/hauntsaninja
Nov 3, 2022https://github.com/python/mypy/pull/13838#discussion_r1012436316
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/13838
ikonsthttps://github.com/ikonst
Nov 3, 2022https://github.com/python/mypy/pull/13838#discussion_r1012442384
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/13838
ikonsthttps://github.com/ikonst
Nov 3, 2022https://github.com/python/mypy/pull/13838#discussion_r1012446860
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
520df60https://github.com/python/mypy/commit/520df60f646787950e1eb6dd3796a16ba2056fd7
Please reload this pagehttps://github.com/python/mypy/pull/13838
test-data/unit/check-typeddict.testhttps://github.com/python/mypy/pull/13838/files/2807feb19e3da1236e1c6c09a164e89359494e69#diff-1db589b0c06e93bf0f492fb32a043ad16c054379c19cd39da57960e98c4b8be0
hauntsaninjahttps://github.com/hauntsaninja
Nov 3, 2022https://github.com/python/mypy/pull/13838#discussion_r1012436420
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/13838
ikonsthttps://github.com/ikonst
Nov 3, 2022https://github.com/python/mypy/pull/13838#discussion_r1012447241
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
520df60https://github.com/python/mypy/commit/520df60f646787950e1eb6dd3796a16ba2056fd7
Please reload this pagehttps://github.com/python/mypy/pull/13838
test-data/unit/check-typeddict.testhttps://github.com/python/mypy/pull/13838/files/2807feb19e3da1236e1c6c09a164e89359494e69#diff-1db589b0c06e93bf0f492fb32a043ad16c054379c19cd39da57960e98c4b8be0
hauntsaninjahttps://github.com/hauntsaninja
Nov 3, 2022https://github.com/python/mypy/pull/13838#discussion_r1012436771
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/13838
ikonsthttps://github.com/ikonst
Nov 3, 2022https://github.com/python/mypy/pull/13838#discussion_r1012445167
Please reload this pagehttps://github.com/python/mypy/pull/13838
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/13838
ikonsthttps://github.com/ikonst
Nov 4, 2022https://github.com/python/mypy/pull/13838#discussion_r1013515449
Please reload this pagehttps://github.com/python/mypy/pull/13838
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
this examplehttps://mypy-play.net/?mypy=latest&python=3.10&gist=18bfd81a2d803d34916d5e2b64b2247c
similarly limitedhttps://pyright-playground.decorator-factory.su/?gzip=H4sIADdtZGMC_4WPQQrDIBRE957i75KAzQGEFLrvtqtQikYtQqLBSIk9fb9pAxahdTnz_syovZsgxNnYO5hpdj7AyUYKF2ucpXA2QXk-EiKVhqCWUDdwOCaEQdu2hHD2RntjA4Ul-Ct0H5CI3UOZgogoZy4xGjh0HQhGAJ9XD8XHG25RNW8KSeDFwPZBfaWdqyhUgvsqC5UZkayNeOYEtg6pVZatQ9kqsXVl6V9fCWtK2CaUKSuexL9DMST-CIkNeQHZ0ZRkmgEAAA%3D%3D
Please reload this pagehttps://github.com/python/mypy/pull/13838
hauntsaninjahttps://github.com/hauntsaninja
Nov 4, 2022https://github.com/python/mypy/pull/13838#discussion_r1013535912
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/13838
ikonsthttps://github.com/ikonst
Nov 4, 2022https://github.com/python/mypy/pull/13838#discussion_r1013537395
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
fb564ebhttps://github.com/python/mypy/commit/fb564eb75bbb4a76be08c6763a5b8da69bc724ee
Please reload this pagehttps://github.com/python/mypy/pull/13838
test-data/unit/check-typeddict.testhttps://github.com/python/mypy/pull/13838/files/2807feb19e3da1236e1c6c09a164e89359494e69#diff-1db589b0c06e93bf0f492fb32a043ad16c054379c19cd39da57960e98c4b8be0
hauntsaninjahttps://github.com/hauntsaninja
Nov 3, 2022https://github.com/python/mypy/pull/13838#discussion_r1012437228
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/13838
ikonsthttps://github.com/ikonst
Nov 3, 2022https://github.com/python/mypy/pull/13838#discussion_r1012447273
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
520df60https://github.com/python/mypy/commit/520df60f646787950e1eb6dd3796a16ba2056fd7
Please reload this pagehttps://github.com/python/mypy/pull/13838
ikonsthttps://github.com/ikonst
November 2, 2022 22:23https://github.com/python/mypy/pull/13838#commits-pushed-520df60
https://github.com/ikonst
update tests per hauntsaninja's code reviewhttps://github.com/python/mypy/pull/13838/commits/520df60f646787950e1eb6dd3796a16ba2056fd7
520df60https://github.com/python/mypy/pull/13838/commits/520df60f646787950e1eb6dd3796a16ba2056fd7
https://github.com/ikonst
Merge branch 'typed-dict-in-type-narrowing' ofhttps://github.com/python/mypy/pull/13838/commits/620da9832598023afefe3026dd2b3338ec2c0c88
https://github.com/iko…https://github.com/ikonst/mypy
620da98https://github.com/python/mypy/pull/13838/commits/620da9832598023afefe3026dd2b3338ec2c0c88
…nst/mypyhttps://github.com/ikonst/mypy
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F13838
https://github.com/ikonst
clarify we don't narrow the left operandhttps://github.com/python/mypy/pull/13838/commits/fb564eb75bbb4a76be08c6763a5b8da69bc724ee
fb564ebhttps://github.com/python/mypy/pull/13838/commits/fb564eb75bbb4a76be08c6763a5b8da69bc724ee
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F13838
ikonsthttps://github.com/ikonst
November 4, 2022 00:00https://github.com/python/mypy/pull/13838#commits-pushed-178483e
https://github.com/ikonst
no more recursion + similar naming to conditional_types...https://github.com/python/mypy/pull/13838/commits/178483e6de1d6c133c1466d4a5f8ff76e9187355
178483ehttps://github.com/python/mypy/pull/13838/commits/178483e6de1d6c133c1466d4a5f8ff76e9187355
https://github.com/ikonst
Merge remote-tracking branch 'origin/master' into typed-dict-in-type-…https://github.com/python/mypy/pull/13838/commits/26c4d041b2949c66d0da28985771e6bc82dd2c57
26c4d04https://github.com/python/mypy/pull/13838/commits/26c4d041b2949c66d0da28985771e6bc82dd2c57
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Nov 4, 2022https://github.com/python/mypy/pull/13838#issuecomment-1302952624
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://github.com/python/mypy/pull/13838
https://github.com/alicederyn
alicederynhttps://github.com/alicederyn
Nov 11, 2022https://github.com/python/mypy/pull/13838#issuecomment-1311419453
f799344https://github.com/python/mypy/commit/f799344581f0b899670ba70da84f57d1880e1470
Please reload this pagehttps://github.com/python/mypy/pull/13838
https://github.com/ikonst
ikonsthttps://github.com/ikonst
Nov 11, 2022https://github.com/python/mypy/pull/13838#issuecomment-1311718032
@alicederynhttps://github.com/alicederyn
Please reload this pagehttps://github.com/python/mypy/pull/13838
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
upnext https://github.com/python/mypy/issues?q=state%3Aopen%20label%3Aupnext
Nov 12, 2022https://github.com/python/mypy/pull/13838#event-7796121389
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Dec 19, 2022 https://github.com/python/mypy/pull/13838#ref-issue-1377755941
Release 1.0 planning #13685 https://github.com/python/mypy/issues/13685
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Dec 20, 2022 https://github.com/python/mypy/pull/13838#pullrequestreview-1225133991
View reviewed changes https://github.com/python/mypy/pull/13838/files/26c4d041b2949c66d0da28985771e6bc82dd2c57
hauntsaninjahttps://github.com/hauntsaninja
https://github.com/python/mypy/pull/13838#pullrequestreview-1225133991
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/13838
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
41574e0https://github.com/python/mypy/commit/41574e0cc521987376dc8c149095b3483aff80ff
Dec 20, 2022https://github.com/python/mypy/pull/13838#event-8081814647
https://github.com/ikonst
ikonsthttps://github.com/ikonst
December 22, 2022 06:15https://github.com/python/mypy/pull/13838#event-8092871557
https://github.com/alicederyn
alicederynhttps://github.com/alicederyn
Feb 13, 2023 https://github.com/python/mypy/pull/13838#ref-pullrequest-1566320275
PEP 705: TypedMapping python/peps#2997 https://github.com/python/peps/pull/2997
https://github.com/ikonst
ikonsthttps://github.com/ikonst
Mar 9, 2023 https://github.com/python/mypy/pull/13838#ref-issue-555044850
Respecting return type of __new__ does not extend to derived classes #8330 https://github.com/python/mypy/issues/8330
https://github.com/alicederyn
alicederynhttps://github.com/alicederyn
Mar 17, 2023 https://github.com/python/mypy/pull/13838#ref-issue-1628987113
final TypedDict with total=False does not allow clear/popitem #14914 https://github.com/python/mypy/issues/14914
https://github.com/alicederyn
alicederynhttps://github.com/alicederyn
Jun 10, 2023 https://github.com/python/mypy/pull/13838#ref-issue-1748279780
Type hint incorrect on TypedDict.update? microsoft/pyright#5254 https://github.com/microsoft/pyright/issues/5254
in keyword should narrow Union[TypedDict, ...] #9953 https://github.com/python/mypy/issues/9953
TypedDict 'in' narrowing w/o @final #15697 https://github.com/python/mypy/issues/15697
https://github.com/ikonst
ikonsthttps://github.com/ikonst
Jul 31, 2023 https://github.com/python/mypy/pull/13838#ref-pullrequest-1809016953
TypedDict 'in' narrowing w/o @final #15698 https://github.com/python/mypy/pull/15698
https://github.com/magicmark
magicmarkhttps://github.com/magicmark
Jan 27, 2025 https://github.com/python/mypy/pull/13838#ref-issue-2812038604
Guidance needed: how to narrow unions of TypedDicts? #18543 https://github.com/python/mypy/issues/18543
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%2F13838
https://github.com/sobolevn
sobolevn https://github.com/sobolevn
https://github.com/python/mypy/pull/13838/files/123656c87ff51fc380e544352b8c24579ca9f2ae
https://github.com/hauntsaninja
hauntsaninja https://github.com/hauntsaninja
https://github.com/python/mypy/pull/13838/files/26c4d041b2949c66d0da28985771e6bc82dd2c57
Please reload this pagehttps://github.com/python/mypy/pull/13838
upnext https://github.com/python/mypy/issues?q=state%3Aopen%20label%3Aupnext
Please reload this pagehttps://github.com/python/mypy/pull/13838
https://github.com/ikonst
https://github.com/alicederyn
https://github.com/sobolevn
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.