René's URL Explorer Experiment


Title: Qualified alias names are mishandled · Issue #3145 · python/mypy · GitHub

Open Graph Title: Qualified alias names are mishandled · Issue #3145 · python/mypy

X Title: Qualified alias names are mishandled · Issue #3145 · python/mypy

Description: T = TypeVar('T') class X(Generic[T]): A = X[T] def f(self, x: int = 1) -> X[T]: ... a: X[T] b: A = a # ok def g(self) -> None: a: X[T] b: X.A = a # ok def g(x: X[T]) -> None: p: X[T] = x.f() # ok q: X.A = x.f() # fail I think it should p...

Open Graph Description: T = TypeVar('T') class X(Generic[T]): A = X[T] def f(self, x: int = 1) -> X[T]: ... a: X[T] b: A = a # ok def g(self) -> None: a: X[T] b: X.A = a # ok def g(x: X[T]) -> None: p: X[T] = x.f() # ok q...

X Description: T = TypeVar('T') class X(Generic[T]): A = X[T] def f(self, x: int = 1) -> X[T]: ... a: X[T] b: A = a # ok def g(self) -> None: a: X[T] b: X.A = a # ok def g(x: X[T]) -> None: p: X[...

Opengraph URL: https://github.com/python/mypy/issues/3145

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Qualified alias names are mishandled","articleBody":"```\r\nT = TypeVar('T')\r\n\r\nclass X(Generic[T]):\r\n    A = X[T]\r\n    def f(self, x: int = 1) -> X[T]: ...\r\n    a: X[T]\r\n    b: A = a # ok\r\n    def g(self) -> None:\r\n        a: X[T]\r\n        b: X.A = a # ok\r\n\r\n\r\ndef g(x: X[T]) -> None:\r\n    p: X[T] = x.f() # ok\r\n    q: X.A = x.f() # fail\r\n```\r\n\r\nI think it should pass, unless qualified aliases are not allowed (in which case it should fail in `X.g()`). In addition, the error is confusing: `Incompatible types in assignment (expression has type m.X[T], variable has type m.X[T])`. ","author":{"url":"https://github.com/pkch","@type":"Person","name":"pkch"},"datePublished":"2017-04-08T06:05:27Z","url":"https://github.com/python/mypy/issues/3145"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ab940b34-5a19-f6ca-b1d6-0e417f7183a5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE182:33DDEF:19A9F32:22E932D:6B0003AC
html-safe-nonce5535b04b31e54709cfadd4a257b96177cbcd78b74e584a6a0e96194833483f24
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTgyOjMzRERFRjoxOUE5RjMyOjIyRTkzMkQ6NkIwMDAzQUMiLCJ2aXNpdG9yX2lkIjoiODAwNTI0MDg4NzQwMTUxMzkwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2367869e95dde98054cc8e9299424dd5d629e251c2f2342ca6492c125c4d9d9e
hovercard-subject-tagissue:220378938
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/mypy/3145/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a3d75e8d074e4e2d96e84e990baa50da535668c051a22e4ac56af0acf7086e34/python/mypy/issues/3145
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a3d75e8d074e4e2d96e84e990baa50da535668c051a22e4ac56af0acf7086e34/python/mypy/issues/3145
og:image:altT = TypeVar('T') class X(Generic[T]): A = X[T] def f(self, x: int = 1) -> X[T]: ... a: X[T] b: A = a # ok def g(self) -> None: a: X[T] b: X.A = a # ok def g(x: X[T]) -> None: p: X[T] = x.f() # ok q...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepkch
hostnamegithub.com
expected-hostnamegithub.com
None0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729
turbo-cache-controlno-preview
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
release16a11879678aaf97e2a42c33ee70830aa084fa37
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/mypy/issues/3145#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fissues%2F3145
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%2Fissues%2F3145
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fmypy
Reloadhttps://github.com/python/mypy/issues/3145
Reloadhttps://github.com/python/mypy/issues/3145
Reloadhttps://github.com/python/mypy/issues/3145
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
New issuehttps://github.com/login?return_to=https://github.com/python/mypy/issues/3145
New issuehttps://github.com/login?return_to=https://github.com/python/mypy/issues/3145
#4000https://github.com/python/mypy/pull/4000
Qualified alias names are mishandledhttps://github.com/python/mypy/issues/3145#top
#4000https://github.com/python/mypy/pull/4000
https://github.com/ilevkivskyi
bugmypy got something wronghttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22bug%22
priority-1-normalhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22priority-1-normal%22
https://github.com/pkch
pkchhttps://github.com/pkch
on Apr 8, 2017https://github.com/python/mypy/issues/3145#issue-220378938
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Apr 8, 2017https://github.com/python/mypy/issues/3145#issuecomment-292744580
@ilevkivskyihttps://github.com/ilevkivskyi
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
on Apr 8, 2017https://github.com/python/mypy/issues/3145#issuecomment-292746478
herehttps://github.com/python/mypy/blob/master/mypy/semanal.py#L1623
commenthttps://github.com/python/mypy/blob/master/mypy/semanal.py#L1606
ilevkivskyihttps://github.com/ilevkivskyi
bugmypy got something wronghttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22bug%22
priority-1-normalhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22priority-1-normal%22
on Apr 9, 2017https://github.com/python/mypy/issues/3145#event-1035392239
https://github.com/neiljp
neiljphttps://github.com/neiljp
on Aug 5, 2017https://github.com/python/mypy/issues/3145#issuecomment-320456201
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Aug 5, 2017https://github.com/python/mypy/issues/3145#issuecomment-320460480
neiljphttps://github.com/neiljp
on Aug 5, 2017https://github.com/python/mypy/issues/3145#event-1194294815
mypy: Hoist RuleList type alias out of function.https://github.com/neiljp/zulip/commit/0240fb08408cbcf0e35435058910d62f6148e5e3
0240fb0https://github.com/neiljp/zulip/commit/0240fb08408cbcf0e35435058910d62f6148e5e3
mypy: Add note re mypy supporting only global type aliases.https://github.com/neiljp/zulip/commit/9e08f9ca3128fbf0e2240f286eb3f59b66d454fa
9e08f9chttps://github.com/neiljp/zulip/commit/9e08f9ca3128fbf0e2240f286eb3f59b66d454fa
mypy: Add note re mypy supporting only global type aliases.https://github.com/neiljp/zulip/commit/1b64c42172d4eda1b5f3c93938ac9b5f7c3cc2a8
1b64c42https://github.com/neiljp/zulip/commit/1b64c42172d4eda1b5f3c93938ac9b5f7c3cc2a8
mypy: Add note re mypy supporting only global type aliases.https://github.com/neiljp/zulip/commit/556a716d587b693c0ceafbeab3e0a42d637ccb1d
556a716https://github.com/neiljp/zulip/commit/556a716d587b693c0ceafbeab3e0a42d637ccb1d
timabbotthttps://github.com/timabbott
on Aug 6, 2017https://github.com/python/mypy/issues/3145#event-1194348039
mypy: Add note re mypy supporting only global type aliases.https://github.com/zulip/zulip/commit/6ac6d6ff5d3b230a7cfcb479a2967662bcdf7973
6ac6d6fhttps://github.com/zulip/zulip/commit/6ac6d6ff5d3b230a7cfcb479a2967662bcdf7973
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
on Aug 7, 2017https://github.com/python/mypy/issues/3145#issuecomment-320610117
#3524https://github.com/python/mypy/pull/3524
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
on Aug 7, 2017https://github.com/python/mypy/issues/3145#issuecomment-320787941
@gvanrossumhttps://github.com/gvanrossum
@JukkaLhttps://github.com/JukkaL
ilevkivskyihttps://github.com/ilevkivskyi
on Aug 7, 2017https://github.com/python/mypy/issues/3145#event-1196186718
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
on Aug 8, 2017https://github.com/python/mypy/issues/3145#issuecomment-320999567
@ilevkivskyihttps://github.com/ilevkivskyi
JukkaLhttps://github.com/JukkaL
completedhttps://github.com/python/mypy/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#4000https://github.com/python/mypy/pull/4000
on Oct 10, 2017https://github.com/python/mypy/issues/3145#event-1286064017
JukkaLhttps://github.com/JukkaL
on Oct 10, 2017https://github.com/python/mypy/issues/3145#event-1286064218
Allow subscripted aliases at function scope (#4000)https://github.com/python/mypy/commit/3e49ef9bbd57b45242d56e0291dba6370aff0f48
#4000https://github.com/python/mypy/pull/4000
https://docs.github.com/articles/closing-issues-via-commit-messages
3e49ef9https://github.com/python/mypy/commit/3e49ef9bbd57b45242d56e0291dba6370aff0f48
amanagrhttps://github.com/amanagr
on Jun 27, 2019https://github.com/python/mypy/issues/3145#event-2442852796
mypy: Add note re mypy supporting only global type aliases.https://github.com/amanagr/zulint/commit/6855f7e22144ff28121714ddd5ad0d44674eb9ca
6855f7ehttps://github.com/amanagr/zulint/commit/6855f7e22144ff28121714ddd5ad0d44674eb9ca
mypy: Add note re mypy supporting only global type aliases.https://github.com/amanagr/zulint/commit/16229ca783ca0f39a0035e69c0d961fe55e6645a
16229cahttps://github.com/amanagr/zulint/commit/16229ca783ca0f39a0035e69c0d961fe55e6645a
mypy: Add note re mypy supporting only global type aliases.https://github.com/amanagr/zulint/commit/468f5ca3f7bb512a37a605dee5e2456f9db7407c
468f5cahttps://github.com/amanagr/zulint/commit/468f5ca3f7bb512a37a605dee5e2456f9db7407c
mypy: Add note re mypy supporting only global type aliases.https://github.com/amanagr/zulint/commit/f1fbe027fcb22b4e9e4a97abeeba973216a52059
f1fbe02https://github.com/amanagr/zulint/commit/f1fbe027fcb22b4e9e4a97abeeba973216a52059
mypy: Add note re mypy supporting only global type aliases.https://github.com/amanagr/zulint/commit/8bfb29659476aeb38abb35b7cd502d6e8ed19102
8bfb296https://github.com/amanagr/zulint/commit/8bfb29659476aeb38abb35b7cd502d6e8ed19102
amanagrhttps://github.com/amanagr
on Jul 10, 2019https://github.com/python/mypy/issues/3145#event-2473068242
mypy: Add note re mypy supporting only global type aliases.https://github.com/amanagr/zulint/commit/37272eee2ee54d26dde61625426fcac7ee6ac86a
37272eehttps://github.com/amanagr/zulint/commit/37272eee2ee54d26dde61625426fcac7ee6ac86a
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/mypy/issues/3145
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/mypy/issues/3145
ilevkivskyihttps://github.com/ilevkivskyi
bugmypy got something wronghttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22bug%22
priority-1-normalhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22priority-1-normal%22
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.