Title: (🐞) `type` doesn't meet it's own type as a protocol · Issue #17567 · python/mypy · GitHub
Open Graph Title: (🐞) `type` doesn't meet it's own type as a protocol · Issue #17567 · python/mypy
X Title: (🐞) `type` doesn't meet it's own type as a protocol · Issue #17567 · python/mypy
Description: from typing import Protocol class Type(Protocol): __name__: str __qualname__: str __module__: str a: type[object] b: Type = object c: Type = a # error: Incompatible types in assignment (expression has type "type[object]", variable has ty...
Open Graph Description: from typing import Protocol class Type(Protocol): __name__: str __qualname__: str __module__: str a: type[object] b: Type = object c: Type = a # error: Incompatible types in assignment (expression ...
X Description: from typing import Protocol class Type(Protocol): __name__: str __qualname__: str __module__: str a: type[object] b: Type = object c: Type = a # error: Incompatible types in assignment (expression ...
Opengraph URL: https://github.com/python/mypy/issues/17567
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"(🐞) `type` doesn't meet it's own type as a protocol","articleBody":"```py\r\nfrom typing import Protocol\r\n\r\n\r\nclass Type(Protocol):\r\n __name__: str\r\n __qualname__: str\r\n __module__: str\r\n\r\n\r\na: type[object]\r\nb: Type = object\r\nc: Type = a # error: Incompatible types in assignment (expression has type \"type[object]\", variable has type \"Type\") [assignment]\r\na.__name__\r\na.__qualname__\r\na.__module__\r\n```","author":{"url":"https://github.com/KotlinIsland","@type":"Person","name":"KotlinIsland"},"datePublished":"2024-07-23T00:57:40Z","url":"https://github.com/python/mypy/issues/17567"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2a41f452-67a4-510d-a0ce-befb2c5fb03c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF1E:1DA29F:1001D51:14E76CF:6AFFF703 |
| html-safe-nonce | 0c03826416a343f3b4016e959087247e838d98a379da2c52efa65b46170c52c0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjFFOjFEQTI5RjoxMDAxRDUxOjE0RTc2Q0Y6NkFGRkY3MDMiLCJ2aXNpdG9yX2lkIjoiNDYwMDgyNjM2MjkxODMzNjI1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 79726e072ae928548692b64239945b4331ddedc0b3ab828904e5f93f74a76c98 |
| hovercard-subject-tag | issue:2424026243 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/mypy/17567/issue_layout |
| twitter:image | https://opengraph.githubassets.com/816bf2200fdb184ea9e63b3861751fd85bb1b0fd6bcb0bc6b3d1607b971a1c1b/python/mypy/issues/17567 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/816bf2200fdb184ea9e63b3861751fd85bb1b0fd6bcb0bc6b3d1607b971a1c1b/python/mypy/issues/17567 |
| og:image:alt | from typing import Protocol class Type(Protocol): __name__: str __qualname__: str __module__: str a: type[object] b: Type = object c: Type = a # error: Incompatible types in assignment (expression ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | KotlinIsland |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width