René's URL Explorer Experiment


Title: Fix "Implicit type aliases not recognised with PEP 604 + import cycles" (but only for stubs) by AlexWaygood · Pull Request #11915 · python/mypy · GitHub

Open Graph Title: Fix "Implicit type aliases not recognised with PEP 604 + import cycles" (but only for stubs) by AlexWaygood · Pull Request #11915 · python/mypy

X Title: Fix "Implicit type aliases not recognised with PEP 604 + import cycles" (but only for stubs) by AlexWaygood · Pull Request #11915 · python/mypy

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

Open Graph Description: Description I think this PR gets rid of all the errors in #11887 -- but I'm not sure #11887 should be closed, as this will only fix the issue for stub files. Cyclic imports are likely to be far...

X Description: Description I think this PR gets rid of all the errors in #11887 -- but I'm not sure #11887 should be closed, as this will only fix the issue for stub files. Cyclic imports are likely to be...

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

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:30f096c2-d7ed-edc3-3e86-94c726a887d2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC990:1FB2:E74E3D:13DC8ED:6B002269
html-safe-nonce3ad464b8111b50d4112b891c253340d69eed02bbd9975d7827f19b5f1d2c768e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTkwOjFGQjI6RTc0RTNEOjEzREM4RUQ6NkIwMDIyNjkiLCJ2aXNpdG9yX2lkIjoiMzE1ODk4MzgxMjc2Mzg4NjE4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8204b833eb6b9c822b00187e0f2e642ab012f8ee0b784a278db9132a07cb1ff3
hovercard-subject-tagpull_request:815077056
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/11915/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/9e75406518ca630bd25356fd7051a2e376c676d96eae7bcfb7f6cdc2f360cd45/python/mypy/pull/11915
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9e75406518ca630bd25356fd7051a2e376c676d96eae7bcfb7f6cdc2f360cd45/python/mypy/pull/11915
og:image:altDescription I think this PR gets rid of all the errors in #11887 -- but I'm not sure #11887 should be closed, as this will only fix the issue for stub files. Cyclic imports are likely to be far...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAlexWaygood
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/11915#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F11915
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%2F11915
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/11915
Reloadhttps://github.com/python/mypy/pull/11915
Reloadhttps://github.com/python/mypy/pull/11915
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
AlexWaygood:fix-import-cycles-604https://github.com/AlexWaygood/mypy/tree/fix-import-cycles-604
Conversationhttps://github.com/python/mypy/pull/11915
Commits8 (8)https://github.com/python/mypy/pull/11915/commits
Checkshttps://github.com/python/mypy/pull/11915/checks
Files changedhttps://github.com/python/mypy/pull/11915/files
Fix "Implicit type aliases not recognised with PEP 604 + import cycles" (but only for stubs)https://github.com/python/mypy/pull/11915#top
hauntsaninjahttps://github.com/hauntsaninja
python:masterhttps://github.com/python/mypy/tree/master
AlexWaygood:fix-import-cycles-604https://github.com/AlexWaygood/mypy/tree/fix-import-cycles-604
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jan 5, 2022https://github.com/python/mypy/pull/11915#issue-1094784743
Please reload this pagehttps://github.com/python/mypy/pull/11915
#11887https://github.com/python/mypy/issues/11887
#11887https://github.com/python/mypy/issues/11887
#4913https://github.com/python/mypy/issues/4913
#11887https://github.com/python/mypy/issues/11887
#11887https://github.com/python/mypy/issues/11887
Please reload this pagehttps://github.com/python/mypy/pull/11915
https://github.com/AlexWaygood
Initial commithttps://github.com/python/mypy/pull/11915/commits/8b617551711a4e8061a3cacc023ebacb19beab80
8b61755https://github.com/python/mypy/pull/11915/commits/8b617551711a4e8061a3cacc023ebacb19beab80
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jan 5, 2022https://github.com/python/mypy/pull/11915#issuecomment-1006118681
Please reload this pagehttps://github.com/python/mypy/pull/11915
@hauntsaninjahttps://github.com/hauntsaninja
Please reload this pagehttps://github.com/python/mypy/pull/11915
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
January 5, 2022 22:41https://github.com/python/mypy/pull/11915#event-5849251634
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Jan 6, 2022 https://github.com/python/mypy/pull/11915#pullrequestreview-845802794
View reviewed changes https://github.com/python/mypy/pull/11915/files/8b617551711a4e8061a3cacc023ebacb19beab80
sobolevnhttps://github.com/sobolevn
Please reload this pagehttps://github.com/python/mypy/pull/11915
https://github.com/python/mypy/pull/11915#pullrequestreview-845802794
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/11915
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jan 6, 2022https://github.com/python/mypy/pull/11915#issuecomment-1006724016
Please reload this pagehttps://github.com/python/mypy/pull/11915
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jan 9, 2022https://github.com/python/mypy/pull/11915#issuecomment-1008365157
Please reload this pagehttps://github.com/python/mypy/pull/11915
Please reload this pagehttps://github.com/python/mypy/pull/11915
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
January 9, 2022 20:06https://github.com/python/mypy/pull/11915#event-5862708808
https://github.com/Akuli
Akulihttps://github.com/Akuli
Jan 13, 2022 https://github.com/python/mypy/pull/11915#ref-issue-994504195
(🐞) False positive "error: Type application has too many types (1 expected)" on tuple when annotated as a type or in a TypeAlias with new union syntax (PEP 604) #11098 https://github.com/python/mypy/issues/11098
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jan 19, 2022 https://github.com/python/mypy/pull/11915#ref-issue-1107998785
Release 0.940 planning #12021 https://github.com/python/mypy/issues/12021
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jan 19, 2022https://github.com/python/mypy/pull/11915#issuecomment-1016402901
@sobolevnhttps://github.com/sobolevn
#11887https://github.com/python/mypy/issues/11887
Please reload this pagehttps://github.com/python/mypy/pull/11915
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jan 19, 2022https://github.com/python/mypy/pull/11915#issuecomment-1016403623
Please reload this pagehttps://github.com/python/mypy/pull/11915
Please reload this pagehttps://github.com/python/mypy/pull/11915
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Jan 19, 2022https://github.com/python/mypy/pull/11915#issuecomment-1016495249
Please reload this pagehttps://github.com/python/mypy/pull/11915
https://calendly.com/sobolevn/https://calendly.com/sobolevn/
Please reload this pagehttps://github.com/python/mypy/pull/11915
https://github.com/AlexWaygood
Add a regression testhttps://github.com/python/mypy/pull/11915/commits/dfd1a272ff10ec3fd86ff39785c4d291aa8a3952
dfd1a27https://github.com/python/mypy/pull/11915/commits/dfd1a272ff10ec3fd86ff39785c4d291aa8a3952
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jan 20, 2022https://github.com/python/mypy/pull/11915#issuecomment-1017006844
Please reload this pagehttps://github.com/python/mypy/pull/11915
https://github.com/AlexWaygood
Fix merge conflictshttps://github.com/python/mypy/pull/11915/commits/7eac5925c08c94e9924f9cd2216a53cea5f4bb41
7eac592https://github.com/python/mypy/pull/11915/commits/7eac5925c08c94e9924f9cd2216a53cea5f4bb41
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
January 20, 2022 00:58https://github.com/python/mypy/pull/11915#event-5921447638
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Jan 20, 2022 https://github.com/python/mypy/pull/11915#pullrequestreview-857796339
View reviewed changes https://github.com/python/mypy/pull/11915/files/7eac5925c08c94e9924f9cd2216a53cea5f4bb41
hauntsaninjahttps://github.com/hauntsaninja
Please reload this pagehttps://github.com/python/mypy/pull/11915
https://github.com/python/mypy/pull/11915#pullrequestreview-857796339
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/11915
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jan 20, 2022https://github.com/python/mypy/pull/11915#issuecomment-1017405333
#10770https://github.com/python/mypy/pull/10770
#11098https://github.com/python/mypy/issues/11098
Please reload this pagehttps://github.com/python/mypy/pull/11915
AlexWaygoodhttps://github.com/AlexWaygood
January 20, 2022 13:27https://github.com/python/mypy/pull/11915#commits-pushed-6ad7790
https://github.com/AlexWaygood
Move testhttps://github.com/python/mypy/pull/11915/commits/6ad779026f31ae24149408dc4795adcaeb4c94dd
6ad7790https://github.com/python/mypy/pull/11915/commits/6ad779026f31ae24149408dc4795adcaeb4c94dd
https://github.com/AlexWaygood
Add x-fail test for .py fileshttps://github.com/python/mypy/pull/11915/commits/2890f8f40577d6d00076412ffe76b21b2a9279e0
2890f8fhttps://github.com/python/mypy/pull/11915/commits/2890f8f40577d6d00076412ffe76b21b2a9279e0
https://github.com/AlexWaygood
Add back whitespacehttps://github.com/python/mypy/pull/11915/commits/8f2cc842b72066d40e369688bdb75cb5dc64404f
8f2cc84https://github.com/python/mypy/pull/11915/commits/8f2cc842b72066d40e369688bdb75cb5dc64404f
https://github.com/AlexWaygood
Merge remote-tracking branch 'origin/master' into fix-import-cycles-604https://github.com/python/mypy/pull/11915/commits/ab8f5725cf297adcf383716de7268df9be7465de
ab8f572https://github.com/python/mypy/pull/11915/commits/ab8f5725cf297adcf383716de7268df9be7465de
https://github.com/AlexWaygood
Reduce size of regression testshttps://github.com/python/mypy/pull/11915/commits/964a7de191445944c2caa5d5079cc6ca15a140af
964a7dehttps://github.com/python/mypy/pull/11915/commits/964a7de191445944c2caa5d5079cc6ca15a140af
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jan 30, 2022https://github.com/python/mypy/pull/11915#issuecomment-1025252012
(🐞) False positive "error: Type application has too many types (1 expected)" on tuple when annotated as a type or in a TypeAlias with new union syntax (PEP 604) #11098https://github.com/python/mypy/issues/11098
Implicit type aliases not recognised with PEP 604 + import cycles #11887https://github.com/python/mypy/issues/11887
Implicit type aliases not recognised with PEP 604 + import cycles #11887https://github.com/python/mypy/issues/11887
Please reload this pagehttps://github.com/python/mypy/pull/11915
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
hauntsaninjahttps://github.com/hauntsaninja
January 30, 2022 22:56https://github.com/python/mypy/pull/11915#event-5977202794
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
3b331b3https://github.com/python/mypy/commit/3b331b30049bb085485b8aa7c1fe34064cab927e
Jan 30, 2022https://github.com/python/mypy/pull/11915#event-5977246801
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Jan 30, 2022https://github.com/python/mypy/pull/11915#issuecomment-1025260156
Please reload this pagehttps://github.com/python/mypy/pull/11915
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
January 30, 2022 23:33https://github.com/python/mypy/pull/11915#event-5977247239
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jan 30, 2022https://github.com/python/mypy/pull/11915#issuecomment-1025260385
@sobolevnhttps://github.com/sobolevn
Please reload this pagehttps://github.com/python/mypy/pull/11915
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
topic-pep-604 https://github.com/python/mypy/issues?q=state%3Aopen%20label%3Atopic-pep-604
Apr 6, 2022https://github.com/python/mypy/pull/11915#event-6381737702
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%2F11915
https://github.com/sobolevn
sobolevn https://github.com/sobolevn
https://github.com/python/mypy/pull/11915/files/8b617551711a4e8061a3cacc023ebacb19beab80
https://github.com/hauntsaninja
hauntsaninja https://github.com/hauntsaninja
Please reload this pagehttps://github.com/python/mypy/pull/11915
topic-pep-604 https://github.com/python/mypy/issues?q=state%3Aopen%20label%3Atopic-pep-604
Please reload this pagehttps://github.com/python/mypy/pull/11915
https://github.com/AlexWaygood
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.