René's URL Explorer Experiment


Title: Fix overload resolution for type aliases to Any by pablogsal · Pull Request #21345 · python/mypy · GitHub

Open Graph Title: Fix overload resolution for type aliases to Any by pablogsal · Pull Request #21345 · python/mypy

X Title: Fix overload resolution for type aliases to Any by pablogsal · Pull Request #21345 · python/mypy

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

Open Graph Description: Aliases like Incomplete: TypeAlias = Any were being downgraded to TypeOfAny.special_form, the same flavor used for NewType-style higher-kinded types. has_any_type ignores special_form Anys when che...

X Description: Aliases like Incomplete: TypeAlias = Any were being downgraded to TypeOfAny.special_form, the same flavor used for NewType-style higher-kinded types. has_any_type ignores special_form Anys when che...

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

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:3373edb3-464c-36b9-7358-153167c30326
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD158:1DD784:448086:5BD688:6B002C69
html-safe-noncea17fccf1580d47c2bff02658dc49a0bb3279e220845804fe4ada967097753e6f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTU4OjFERDc4NDo0NDgwODY6NUJENjg4OjZCMDAyQzY5IiwidmlzaXRvcl9pZCI6IjIzNjMxMjM1MzM4NDE3MDYwODkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacad53662ca61a2135d732b653a845c3cb1d6a26f49caf7929a92e99da2db854b8
hovercard-subject-tagpull_request:3590178497
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/21345/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/219c04a336f818c9eedde9e35ada412904ba3af54eb54c5d11a57a75dc6ad9b9/python/mypy/pull/21345
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/219c04a336f818c9eedde9e35ada412904ba3af54eb54c5d11a57a75dc6ad9b9/python/mypy/pull/21345
og:image:altAliases like Incomplete: TypeAlias = Any were being downgraded to TypeOfAny.special_form, the same flavor used for NewType-style higher-kinded types. has_any_type ignores special_form Anys when che...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepablogsal
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/21345#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F21345
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%2F21345
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/21345
Reloadhttps://github.com/python/mypy/pull/21345
Reloadhttps://github.com/python/mypy/pull/21345
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
pablogsalhttps://github.com/pablogsal
python:masterhttps://github.com/python/mypy/tree/master
pablogsal:better-anyshttps://github.com/pablogsal/mypy/tree/better-anys
Conversationhttps://github.com/python/mypy/pull/21345
Commits4 (4)https://github.com/python/mypy/pull/21345/commits
Checkshttps://github.com/python/mypy/pull/21345/checks
Files changedhttps://github.com/python/mypy/pull/21345/files
Fix overload resolution for type aliases to Anyhttps://github.com/python/mypy/pull/21345#top
pablogsalhttps://github.com/pablogsal
python:masterhttps://github.com/python/mypy/tree/master
pablogsal:better-anyshttps://github.com/pablogsal/mypy/tree/better-anys
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Apr 27, 2026https://github.com/python/mypy/pull/21345#issue-4336356875
Please reload this pagehttps://github.com/python/mypy/pull/21345
#21344https://github.com/python/mypy/issues/21344
Please reload this pagehttps://github.com/python/mypy/pull/21345
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
force-pushedhttps://github.com/python/mypy/compare/8b882e3f289b3f88e5e7e21a873c351235a50836..398d70e0eaa09eedce2059e43f3fb4a6a44191e8
8b882e3https://github.com/python/mypy/commit/8b882e3f289b3f88e5e7e21a873c351235a50836
398d70ehttps://github.com/python/mypy/commit/398d70e0eaa09eedce2059e43f3fb4a6a44191e8
Compare https://github.com/python/mypy/compare/8b882e3f289b3f88e5e7e21a873c351235a50836..398d70e0eaa09eedce2059e43f3fb4a6a44191e8
April 27, 2026 14:23https://github.com/python/mypy/pull/21345#event-24909647257
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F21345
Fix overload resolution for type aliases to Anyhttps://github.com/python/mypy/pull/21345/commits/e99dbc82c91dfe7ad69a57debbff840b13740b15
e99dbc8https://github.com/python/mypy/pull/21345/commits/e99dbc82c91dfe7ad69a57debbff840b13740b15
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
force-pushedhttps://github.com/python/mypy/compare/e1cf5483dec0d8ae092f37935d0800359d4df9e6..e99dbc82c91dfe7ad69a57debbff840b13740b15
e1cf548https://github.com/python/mypy/commit/e1cf5483dec0d8ae092f37935d0800359d4df9e6
e99dbc8https://github.com/python/mypy/commit/e99dbc82c91dfe7ad69a57debbff840b13740b15
Compare https://github.com/python/mypy/compare/e1cf5483dec0d8ae092f37935d0800359d4df9e6..e99dbc82c91dfe7ad69a57debbff840b13740b15
April 27, 2026 14:49https://github.com/python/mypy/pull/21345#event-24910745497
https://github.com/marketplace/pre-commit-ci
[pre-commit.ci] auto fixes from pre-commit.com hookshttps://github.com/python/mypy/pull/21345/commits/dc9fd24379cc11e3705f242ee38f2f5361611b58
dc9fd24https://github.com/python/mypy/pull/21345/commits/dc9fd24379cc11e3705f242ee38f2f5361611b58
https://pre-commit.cihttps://pre-commit.ci
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F21345
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Apr 27, 2026 https://github.com/python/mypy/pull/21345#pullrequestreview-4183812393
View reviewed changes https://github.com/python/mypy/pull/21345/files/dc9fd24379cc11e3705f242ee38f2f5361611b58
hauntsaninjahttps://github.com/hauntsaninja
Please reload this pagehttps://github.com/python/mypy/pull/21345
https://github.com/python/mypy/pull/21345#pullrequestreview-4183812393
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/21345
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Apr 27, 2026https://github.com/python/mypy/pull/21345#issuecomment-4330350060
Please reload this pagehttps://github.com/python/mypy/pull/21345
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Apr 27, 2026 https://github.com/python/mypy/pull/21345#ref-issue-4336348267
[1.20 regression] _Environ.get(key, default) returns str | None when default is an alias to Any #21344 https://github.com/python/mypy/issues/21344
https://github.com/Hnasar
Hnasarhttps://github.com/Hnasar
Apr 27, 2026 https://github.com/python/mypy/pull/21345#pullrequestreview-4184686753
View reviewed changes https://github.com/python/mypy/pull/21345/files/dc9fd24379cc11e3705f242ee38f2f5361611b58
Hnasarhttps://github.com/Hnasar
https://github.com/python/mypy/pull/21345#pullrequestreview-4184686753
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://github.com/static-frame/static-frame/blob/master/static_frame/core/util.py#L1807https://github.com/static-frame/static-frame/blob/master/static_frame/core/util.py#L1807
ndarray.Thttps://github.com/numpy/numpy/blob/67444cb8c5663c1d243f401c510bc81be58db21e/numpy/__init__.pyi#L1663
Please reload this pagehttps://github.com/python/mypy/pull/21345
mypy/stats.pyhttps://github.com/python/mypy/pull/21345/files/dc9fd24379cc11e3705f242ee38f2f5361611b58#diff-83112ac59c5b1c420927a22bcdd402409b43d77ea3649b997a966dde7dfdd912
Hnasarhttps://github.com/Hnasar
Apr 27, 2026https://github.com/python/mypy/pull/21345#discussion_r3150640753
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/21345
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Apr 27, 2026https://github.com/python/mypy/pull/21345#issuecomment-4331319759
Please reload this pagehttps://github.com/python/mypy/pull/21345
Please reload this pagehttps://github.com/python/mypy/pull/21345
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Apr 28, 2026https://github.com/python/mypy/pull/21345#issuecomment-4331428361
Please reload this pagehttps://github.com/python/mypy/pull/21345
Please reload this pagehttps://github.com/python/mypy/pull/21345
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Apr 28, 2026https://github.com/python/mypy/pull/21345#issuecomment-4334500348
Please reload this pagehttps://github.com/python/mypy/pull/21345
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
force-pushedhttps://github.com/python/mypy/compare/68d6f9a323566822badac9230987f54500dd18ea..7f8cf7efa16d10452f33da109c84475caa30f0fc
68d6f9ahttps://github.com/python/mypy/commit/68d6f9a323566822badac9230987f54500dd18ea
7f8cf7ehttps://github.com/python/mypy/commit/7f8cf7efa16d10452f33da109c84475caa30f0fc
Compare https://github.com/python/mypy/compare/68d6f9a323566822badac9230987f54500dd18ea..7f8cf7efa16d10452f33da109c84475caa30f0fc
April 28, 2026 11:01https://github.com/python/mypy/pull/21345#event-24944234368
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F21345
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Apr 28, 2026https://github.com/python/mypy/pull/21345#issuecomment-4334822043
Please reload this pagehttps://github.com/python/mypy/pull/21345
https://github.com/pablogsal
Fix special form in nestedhttps://github.com/python/mypy/pull/21345/commits/8949bcc4e7cebd3f36ad7373c47ab5bb627a32fb
8949bcchttps://github.com/python/mypy/pull/21345/commits/8949bcc4e7cebd3f36ad7373c47ab5bb627a32fb
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
force-pushedhttps://github.com/python/mypy/compare/7f8cf7efa16d10452f33da109c84475caa30f0fc..8949bcc4e7cebd3f36ad7373c47ab5bb627a32fb
7f8cf7ehttps://github.com/python/mypy/commit/7f8cf7efa16d10452f33da109c84475caa30f0fc
8949bcchttps://github.com/python/mypy/commit/8949bcc4e7cebd3f36ad7373c47ab5bb627a32fb
Compare https://github.com/python/mypy/compare/7f8cf7efa16d10452f33da109c84475caa30f0fc..8949bcc4e7cebd3f36ad7373c47ab5bb627a32fb
April 28, 2026 14:43https://github.com/python/mypy/pull/21345#event-24952703584
https://github.com/marketplace/pre-commit-ci
[pre-commit.ci] auto fixes from pre-commit.com hookshttps://github.com/python/mypy/pull/21345/commits/1e4622b4bfd2c160998263e96df14672901dd857
1e4622bhttps://github.com/python/mypy/pull/21345/commits/1e4622b4bfd2c160998263e96df14672901dd857
https://pre-commit.cihttps://pre-commit.ci
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Apr 28, 2026https://github.com/python/mypy/pull/21345#issuecomment-4336511594
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://github.com/python/mypy/pull/21345
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Apr 28, 2026https://github.com/python/mypy/pull/21345#issuecomment-4336828864
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
@hauntsaninjahttps://github.com/hauntsaninja
Please reload this pagehttps://github.com/python/mypy/pull/21345
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%2F21345
https://github.com/hauntsaninja
hauntsaninja https://github.com/hauntsaninja
https://github.com/python/mypy/pull/21345/files/dc9fd24379cc11e3705f242ee38f2f5361611b58
https://github.com/Hnasar
Hnasar https://github.com/Hnasar
https://github.com/python/mypy/pull/21345/files/dc9fd24379cc11e3705f242ee38f2f5361611b58
Please reload this pagehttps://github.com/python/mypy/pull/21345
[1.20 regression] _Environ.get(key, default) returns str | None when default is an alias to Any https://github.com/python/mypy/issues/21344
Please reload this pagehttps://github.com/python/mypy/pull/21345
https://github.com/pablogsal
https://github.com/hauntsaninja
https://github.com/Hnasar
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.