René's URL Explorer Experiment


Title: Narrow type variable bounds in binder by ilevkivskyi · Pull Request #19183 · python/mypy · GitHub

Open Graph Title: Narrow type variable bounds in binder by ilevkivskyi · Pull Request #19183 · python/mypy

X Title: Narrow type variable bounds in binder by ilevkivskyi · Pull Request #19183 · python/mypy

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

Open Graph Description: Fixes #5720 Fixes #8556 Fixes #9778 Fixes #10003 Fixes #10817 Fixes #11163 Fixes #11664 Fixes #12882 Fixes #13426 Fixes #13462 Fixes #14941 Fixes #15151 Fixes #19166 This handles a (surprisingly) c...

X Description: Fixes #5720 Fixes #8556 Fixes #9778 Fixes #10003 Fixes #10817 Fixes #11163 Fixes #11664 Fixes #12882 Fixes #13426 Fixes #13462 Fixes #14941 Fixes #15151 Fixes #19166 This handles a (surprisingly) c...

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

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:6eb8c7e8-3e5d-95ad-61b6-dcb3882f343a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB858:1AEC58:380E8B:4B7FDE:6B002907
html-safe-noncea27d3ae3fe1f57c1796acd5f1dec6952e9e7dbc85dba8d5cb8f294585500c1a2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODU4OjFBRUM1ODozODBFOEI6NEI3RkRFOjZCMDAyOTA3IiwidmlzaXRvcl9pZCI6IjIwNDM4MDcxMjA3MDQ0MTYwMDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac40e2883fc231f24da7d477b674e9ad376d46229f4fb861d3fdf48f74d1fbba3a
hovercard-subject-tagpull_request:2556770502
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/19183/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/174389ce1f39f39592ba23c1264e6a63cb00cfcd3a639a37cbcb5d6a373893f8/python/mypy/pull/19183
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/174389ce1f39f39592ba23c1264e6a63cb00cfcd3a639a37cbcb5d6a373893f8/python/mypy/pull/19183
og:image:altFixes #5720 Fixes #8556 Fixes #9778 Fixes #10003 Fixes #10817 Fixes #11163 Fixes #11664 Fixes #12882 Fixes #13426 Fixes #13462 Fixes #14941 Fixes #15151 Fixes #19166 This handles a (surprisingly) c...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameilevkivskyi
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/19183#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19183
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%2F19183
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/19183
Reloadhttps://github.com/python/mypy/pull/19183
Reloadhttps://github.com/python/mypy/pull/19183
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
ilevkivskyihttps://github.com/ilevkivskyi
python:masterhttps://github.com/python/mypy/tree/master
ilevkivskyi:narrow-typevar-boundshttps://github.com/ilevkivskyi/mypy/tree/narrow-typevar-bounds
Conversationhttps://github.com/python/mypy/pull/19183
Commits5 (5)https://github.com/python/mypy/pull/19183/commits
Checkshttps://github.com/python/mypy/pull/19183/checks
Files changedhttps://github.com/python/mypy/pull/19183/files
Narrow type variable bounds in binderhttps://github.com/python/mypy/pull/19183#top
ilevkivskyihttps://github.com/ilevkivskyi
python:masterhttps://github.com/python/mypy/tree/master
ilevkivskyi:narrow-typevar-boundshttps://github.com/ilevkivskyi/mypy/tree/narrow-typevar-bounds
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
May 31, 2025https://github.com/python/mypy/pull/19183#issue-3105527273
Please reload this pagehttps://github.com/python/mypy/pull/19183
#5720https://github.com/python/mypy/issues/5720
#8556https://github.com/python/mypy/issues/8556
#9778https://github.com/python/mypy/issues/9778
#10003https://github.com/python/mypy/issues/10003
#10817https://github.com/python/mypy/issues/10817
#11163https://github.com/python/mypy/issues/11163
#11664https://github.com/python/mypy/issues/11664
#12882https://github.com/python/mypy/issues/12882
#13426https://github.com/python/mypy/issues/13426
#13462https://github.com/python/mypy/issues/13462
#14941https://github.com/python/mypy/issues/14941
#15151https://github.com/python/mypy/issues/15151
#19166https://github.com/python/mypy/issues/19166
Please reload this pagehttps://github.com/python/mypy/pull/19183
https://github.com/ilevkivskyi
Narrow type variable bounds in binderhttps://github.com/python/mypy/pull/19183/commits/fd8d1cdb9111b77ad16aee6377d2d85080a0f648
fd8d1cdhttps://github.com/python/mypy/pull/19183/commits/fd8d1cdb9111b77ad16aee6377d2d85080a0f648
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19183
https://github.com/ilevkivskyi
Reorder branches in narrowing logichttps://github.com/python/mypy/pull/19183/commits/e2fadecbfbf44132087a777bc3f63ab10b22598f
e2fadechttps://github.com/python/mypy/pull/19183/commits/e2fadecbfbf44132087a777bc3f63ab10b22598f
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19183
https://github.com/ilevkivskyi
Use a bit more principled handling of unionshttps://github.com/python/mypy/pull/19183/commits/fcc9af6569c2a4d308d115adccafa1ae31266f22
fcc9af6https://github.com/python/mypy/pull/19183/commits/fcc9af6569c2a4d308d115adccafa1ae31266f22
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F19183
Checking Generic Type at Runtime #13053 https://github.com/python/mypy/issues/13053
Narrowing doesn't work on a typevar with a union bound #15631 https://github.com/python/mypy/issues/15631
Narrow TypeVars in the negative case + narrow them through upper bounds #15711 https://github.com/python/mypy/pull/15711
Narrow TypeVar to bounded TypeVar #15377 https://github.com/python/mypy/pull/15377
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
JukkaLhttps://github.com/JukkaL
hauntsaninjahttps://github.com/hauntsaninja
May 31, 2025 21:25https://github.com/python/mypy/pull/19183#event-17905100922
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
May 31, 2025https://github.com/python/mypy/pull/19183#issuecomment-2925757503
Please reload this pagehttps://github.com/python/mypy/pull/19183
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Jun 1, 2025 https://github.com/python/mypy/pull/19183#pullrequestreview-2884826003
View reviewed changes https://github.com/python/mypy/pull/19183/files/fcc9af6569c2a4d308d115adccafa1ae31266f22
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Jun 1, 2025https://github.com/python/mypy/pull/19183#issuecomment-2926107383
Please reload this pagehttps://github.com/python/mypy/pull/19183
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
Jun 1, 2025 https://github.com/python/mypy/pull/19183#pullrequestreview-2885655402
View reviewed changes https://github.com/python/mypy/pull/19183/files/fcc9af6569c2a4d308d115adccafa1ae31266f22
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
Jun 3, 2025 https://github.com/python/mypy/pull/19183#ref-issue-3109384527
Problems with narrowing generic T | Sequence[T] #19202 https://github.com/python/mypy/issues/19202
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Jun 3, 2025 https://github.com/python/mypy/pull/19183#ref-issue-2879563028
1.16 Release Planning #18739 https://github.com/python/mypy/issues/18739
ilevkivskyihttps://github.com/ilevkivskyi
June 3, 2025 18:29https://github.com/python/mypy/pull/19183#commits-pushed-21a2153
https://github.com/ilevkivskyi
Merge remote-tracking branch 'upstream/master' into narrow-typevar-bo…https://github.com/python/mypy/pull/19183/commits/21a21530c06188715120c03eb1f1f188e900322b
21a2153https://github.com/python/mypy/pull/19183/commits/21a21530c06188715120c03eb1f1f188e900322b
https://github.com/ilevkivskyi
Address offline feedbackhttps://github.com/python/mypy/pull/19183/commits/54a80bba41814b11954e60e62d0b7acc505ba188
54a80bbhttps://github.com/python/mypy/pull/19183/commits/54a80bba41814b11954e60e62d0b7acc505ba188
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Jun 3, 2025https://github.com/python/mypy/pull/19183#issuecomment-2936683148
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://github.com/python/mypy/pull/19183
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
5a0fa55https://github.com/python/mypy/commit/5a0fa556be741270e25c95a923ef8450d28dd448
Jun 3, 2025https://github.com/python/mypy/pull/19183#event-17965372914
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
June 3, 2025 18:37https://github.com/python/mypy/pull/19183#event-17965375310
mypy too strict in enforcing generic return types when they are unions #19239 https://github.com/python/mypy/issues/19239
An instance of a final class should be treated as satisfying a TypeVar bound to it, after being narrowed #19255 https://github.com/python/mypy/issues/19255
https://github.com/netomi
netomihttps://github.com/netomi
Jun 11, 2025https://github.com/python/mypy/pull/19183#issuecomment-2963898631
Please reload this pagehttps://github.com/python/mypy/pull/19183
Please reload this pagehttps://github.com/python/mypy/pull/19183
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Jun 11, 2025https://github.com/python/mypy/pull/19183#issuecomment-2963989131
@netomihttps://github.com/netomi
Please reload this pagehttps://github.com/python/mypy/pull/19183
https://github.com/netomi
netomihttps://github.com/netomi
Jun 11, 2025https://github.com/python/mypy/pull/19183#issuecomment-2964027157
Please reload this pagehttps://github.com/python/mypy/pull/19183
https://github.com/apache/infrastructure-asfyamlhttps://github.com/apache/infrastructure-asfyaml
Please reload this pagehttps://github.com/python/mypy/pull/19183
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Jun 14, 2025https://github.com/python/mypy/pull/19183#issuecomment-2972033198
Please reload this pagehttps://github.com/python/mypy/pull/19183
https://github.com/netomi
netomihttps://github.com/netomi
Jun 14, 2025https://github.com/python/mypy/pull/19183#issuecomment-2972246803
Please reload this pagehttps://github.com/python/mypy/pull/19183
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
Jul 10, 2025 https://github.com/python/mypy/pull/19183#ref-issue-3215313122
RuntimeError: Not implemented mypy.types.TypeGuardedType #19412 https://github.com/python/mypy/issues/19412
https://github.com/gopidesupavan
gopidesupavanhttps://github.com/gopidesupavan
Jul 10, 2025 https://github.com/python/mypy/pull/19183#ref-pullrequest-3213835853
Make task-sdk compatible with mypy 1.16.1 apache/airflow#53047 https://github.com/apache/airflow/pull/53047
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
Jul 16, 2025 https://github.com/python/mypy/pull/19183#ref-issue-3233600759
Comparison operators emit "Unsupported operand types" when using isinstance to narrow TypeVar to union of numeric types #19454 https://github.com/python/mypy/issues/19454
https://github.com/pkit
pkithttps://github.com/pkit
Aug 16, 2025 https://github.com/python/mypy/pull/19183#ref-issue-1345257714
Wrong type narrowing when using type without an argument in isinstance call #13462 https://github.com/python/mypy/issues/13462
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Feb 10, 2026 https://github.com/python/mypy/pull/19183#ref-issue-970922495
issubclass doesn't narrow down types #10978 https://github.com/python/mypy/issues/10978
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%2F19183
https://github.com/hauntsaninja
hauntsaninja https://github.com/hauntsaninja
https://github.com/python/mypy/pull/19183/files/fcc9af6569c2a4d308d115adccafa1ae31266f22
https://github.com/JukkaL
JukkaL https://github.com/JukkaL
https://github.com/sterliakov
sterliakov https://github.com/sterliakov
https://github.com/python/mypy/pull/19183/files/fcc9af6569c2a4d308d115adccafa1ae31266f22
Please reload this pagehttps://github.com/python/mypy/pull/19183
False-positive on TypeVar bound class return value https://github.com/python/mypy/issues/10817
Incompatible return value type with TypeVar https://github.com/python/mypy/issues/10003
Union is incorrectly constructed when callable() is used, resulting in a false positive https://github.com/python/mypy/issues/9778
Bug: issubclass() doesn't narrow TypeVar type with Protocol https://github.com/python/mypy/issues/8556
Class typevars lose information from isinstance checks https://github.com/python/mypy/issues/5720
issubclass(...) causes a TypeVar to become a Union, leading to false positives https://github.com/python/mypy/issues/11163
TypeVar resolved to a concrete type using isinstance causes mypy to become confused at the equivalence https://github.com/python/mypy/issues/11664
TypeVar error https://github.com/python/mypy/issues/12882
Inconsistent behavior when narrowing bounded generics. https://github.com/python/mypy/issues/13426
Wrong type narrowing when using type without an argument in isinstance call https://github.com/python/mypy/issues/13462
Please reload this pagehttps://github.com/python/mypy/pull/19183
https://github.com/ilevkivskyi
https://github.com/hauntsaninja
https://github.com/netomi
https://github.com/sterliakov
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.