René's URL Explorer Experiment


Title: Extend special case for context-based typevar inference to typevar unions in return position by sterliakov · Pull Request #18976 · python/mypy · GitHub

Open Graph Title: Extend special case for context-based typevar inference to typevar unions in return position by sterliakov · Pull Request #18976 · python/mypy

X Title: Extend special case for context-based typevar inference to typevar unions in return position by sterliakov · Pull Request #18976 · python/mypy

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

Open Graph Description: Fixes wrongly reported typing error in min with key lambda function and default value when result is Optional #17221. Fixes [arg-type] wrong argument type in generic function with union #17654. Fix...

X Description: Fixes wrongly reported typing error in min with key lambda function and default value when result is Optional #17221. Fixes [arg-type] wrong argument type in generic function with union #17654. Fix...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:ba77d424-008d-5303-d091-b2e2de732263
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8218:22AFD6:A4DB96F:DE76F3C:6A5EA3FA
html-safe-nonce3dae5fca32fc4e2e6ca4e55eb8c2f336ba3c83ed01daf8e9f0e7e9c467e1c0bb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjE4OjIyQUZENjpBNERCOTZGOkRFNzZGM0M6NkE1RUEzRkEiLCJ2aXNpdG9yX2lkIjoiNjQyMjAwODgyOTg5NTk0MzE2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacad7394a566c5484c6dda067ec595bc357f1bb23ed0be4f4666663e46cdf5c1bd
hovercard-subject-tagpull_request:2483414289
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///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/mypy/pull/18976/commits
twitter:imagehttps://opengraph.githubassets.com/658e6d2501fcd52e745689ff3a8a7d558617e30d0f1429ef23852ccc24acaa47/python/mypy/pull/18976
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/658e6d2501fcd52e745689ff3a8a7d558617e30d0f1429ef23852ccc24acaa47/python/mypy/pull/18976
og:image:altFixes wrongly reported typing error in min with key lambda function and default value when result is Optional #17221. Fixes [arg-type] wrong argument type in generic function with union #17654. Fix...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesterliakov
hostnamegithub.com
expected-hostnamegithub.com
None7c7e31acb6a895494e518b880f5ccf39604f7fa9a8f2f3c64145efc3b776256d
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
release2d2ac9bdd71d5f53f2b731c9330677e38624e301
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/mypy/pull/18976/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F18976%2Fcommits
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%2F18976%2Fcommits
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%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python%2Fmypy
Reloadhttps://github.com/python/mypy/pull/18976/commits
Reloadhttps://github.com/python/mypy/pull/18976/commits
Reloadhttps://github.com/python/mypy/pull/18976/commits
Please reload this pagehttps://github.com/python/mypy/pull/18976/commits
python https://github.com/python
mypyhttps://github.com/python/mypy
Please reload this pagehttps://github.com/python/mypy/pull/18976/commits
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
sterliakov:bugfix/gh-17221-typevar-union-contexthttps://github.com/sterliakov/mypy/tree/bugfix/gh-17221-typevar-union-context
Conversationhttps://github.com/python/mypy/pull/18976
Commits9 (9)https://github.com/python/mypy/pull/18976/commits
Checkshttps://github.com/python/mypy/pull/18976/checks
Files changedhttps://github.com/python/mypy/pull/18976/files
Extend special case for context-based typevar inference to typevar unions in return positionhttps://github.com/python/mypy/pull/18976/commits#top
hauntsaninjahttps://github.com/hauntsaninja
python:masterhttps://github.com/python/mypy/tree/master
sterliakov:bugfix/gh-17221-typevar-union-contexthttps://github.com/sterliakov/mypy/tree/bugfix/gh-17221-typevar-union-context
Extend special-case for context-based typevar inference in return position to typevar unionshttps://github.com/python/mypy/pull/18976/commits/c4baf4ed23b0648198f6e3e32a3d591d850d081c
https://github.com/sterliakov
sterliakovhttps://github.com/python/mypy/commits?author=sterliakov
c4baf4ehttps://github.com/python/mypy/pull/18976/commits/c4baf4ed23b0648198f6e3e32a3d591d850d081c
https://github.com/python/mypy/tree/c4baf4ed23b0648198f6e3e32a3d591d850d081c
Add missing get_proper_typehttps://github.com/python/mypy/pull/18976/commits/83315466d5114cd61cbe993c9a17389a91dcaef2
https://github.com/sterliakov
sterliakovhttps://github.com/python/mypy/commits?author=sterliakov
8331546https://github.com/python/mypy/pull/18976/commits/83315466d5114cd61cbe993c9a17389a91dcaef2
https://github.com/python/mypy/tree/83315466d5114cd61cbe993c9a17389a91dcaef2
Fix a regression with `mapping.get(key, default_singleton)`https://github.com/python/mypy/pull/18976/commits/7fcae0f3ed168eb8044bfb58d6276ebd3b82e385
https://github.com/sterliakov
sterliakovhttps://github.com/python/mypy/commits?author=sterliakov
7fcae0fhttps://github.com/python/mypy/pull/18976/commits/7fcae0f3ed168eb8044bfb58d6276ebd3b82e385
https://github.com/python/mypy/tree/7fcae0f3ed168eb8044bfb58d6276ebd3b82e385
Switch to detecting *any* typevar in union in return position - `T | str` is no less problematichttps://github.com/python/mypy/pull/18976/commits/43c097c4e8ee7889ba256a0d161368cc0cf6ab61
https://github.com/sterliakov
sterliakovhttps://github.com/python/mypy/commits?author=sterliakov
43c097chttps://github.com/python/mypy/pull/18976/commits/43c097c4e8ee7889ba256a0d161368cc0cf6ab61
https://github.com/python/mypy/tree/43c097c4e8ee7889ba256a0d161368cc0cf6ab61
Revert attempt to fix Mapping.gethttps://github.com/python/mypy/pull/18976/commits/e3771159078378eb1a2cfc047c959305e0ef40d9
https://github.com/sterliakov
sterliakovhttps://github.com/python/mypy/commits?author=sterliakov
e377115https://github.com/python/mypy/pull/18976/commits/e3771159078378eb1a2cfc047c959305e0ef40d9
https://github.com/python/mypy/tree/e3771159078378eb1a2cfc047c959305e0ef40d9
Revert to `all()` - inferring for unions of typevar and something seem to be helpfulhttps://github.com/python/mypy/pull/18976/commits/3f04d8ee0ad7807867ea952036930d65165df5e2
https://github.com/sterliakov
sterliakovhttps://github.com/python/mypy/commits?author=sterliakov
3f04d8ehttps://github.com/python/mypy/pull/18976/commits/3f04d8ee0ad7807867ea952036930d65165df5e2
https://github.com/python/mypy/tree/3f04d8ee0ad7807867ea952036930d65165df5e2
Merge branch 'master' into bugfix/gh-17221-typevar-union-contexthttps://github.com/python/mypy/pull/18976/commits/01cbfbcf89cd9d7de5a853bfe13c2cc5138edf08
https://github.com/sterliakov
sterliakovhttps://github.com/python/mypy/commits?author=sterliakov
01cbfbchttps://github.com/python/mypy/pull/18976/commits/01cbfbcf89cd9d7de5a853bfe13c2cc5138edf08
https://github.com/python/mypy/tree/01cbfbcf89cd9d7de5a853bfe13c2cc5138edf08
Remove xfail test - fixed in previous PRhttps://github.com/python/mypy/pull/18976/commits/f1e4dfc60f60ecd64d073dcc519939d5fea023e7
https://github.com/sterliakov
sterliakovhttps://github.com/python/mypy/commits?author=sterliakov
f1e4dfchttps://github.com/python/mypy/pull/18976/commits/f1e4dfc60f60ecd64d073dcc519939d5fea023e7
https://github.com/python/mypy/tree/f1e4dfc60f60ecd64d073dcc519939d5fea023e7
Merge branch 'master' into bugfix/gh-17221-typevar-union-contexthttps://github.com/python/mypy/pull/18976/commits/8b5d1404487270017097721226856204ddbae779
https://github.com/sterliakov
sterliakovhttps://github.com/python/mypy/commits?author=sterliakov
8b5d140https://github.com/python/mypy/pull/18976/commits/8b5d1404487270017097721226856204ddbae779
https://github.com/python/mypy/tree/8b5d1404487270017097721226856204ddbae779
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.