Title: (🐞) Bad error message when using unbound `ParamSpec` in a `Callable` · Issue #13476 · python/mypy · GitHub
Open Graph Title: (🐞) Bad error message when using unbound `ParamSpec` in a `Callable` · Issue #13476 · python/mypy
X Title: (🐞) Bad error message when using unbound `ParamSpec` in a `Callable` · Issue #13476 · python/mypy
Description: from typing import ParamSpec, Callable P = ParamSpec("P") a: Callable[P, None] # error: The first argument to Callable must be a list of types, parameter specification, or "..." playground
Open Graph Description: from typing import ParamSpec, Callable P = ParamSpec("P") a: Callable[P, None] # error: The first argument to Callable must be a list of types, parameter specification, or "..." playground
X Description: from typing import ParamSpec, Callable P = ParamSpec("P") a: Callable[P, None] # error: The first argument to Callable must be a list of types, parameter specification, or "..."...
Opengraph URL: https://github.com/python/mypy/issues/13476
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"(🐞) Bad error message when using unbound `ParamSpec` in a `Callable`","articleBody":"```py\r\nfrom typing import ParamSpec, Callable\r\n\r\nP = ParamSpec(\"P\")\r\na: Callable[P, None] # error: The first argument to Callable must be a list of types, parameter specification, or \"...\"\r\n```\r\n[playground](https://mypy-play.net/?mypy=latest&python=3.10&gist=ab1ffc9ed55d16580a3fdf3143e3c763)","author":{"url":"https://github.com/KotlinIsland","@type":"Person","name":"KotlinIsland"},"datePublished":"2022-08-22T01:44:01Z","url":"https://github.com/python/mypy/issues/13476"}
| 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:b38fae8c-8d11-cbfc-50d6-b156022d2d8d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE16:1EE55B:182D877:20D8BC8:6AFFF8D0 |
| html-safe-nonce | bd1e3ee7bf25930648dc299e9d04edf30d2cc52a786fdca9e13c21a4c1a449ab |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTE2OjFFRTU1QjoxODJEODc3OjIwRDhCQzg6NkFGRkY4RDAiLCJ2aXNpdG9yX2lkIjoiMjMwMzc2NDc1MzY0MzczMTE1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e543701fae66dd95b7675111a0696d12462c14f8a3b783c7b43ed623b7695eb6 |
| hovercard-subject-tag | issue:1345684991 |
| 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/13476/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3c75f8f4e911a7c0db5876eaf61e2851189fe860d0088b5dda6323ba4b8b49e8/python/mypy/issues/13476 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3c75f8f4e911a7c0db5876eaf61e2851189fe860d0088b5dda6323ba4b8b49e8/python/mypy/issues/13476 |
| og:image:alt | from typing import ParamSpec, Callable P = ParamSpec("P") a: Callable[P, None] # error: The first argument to Callable must be a list of types, parameter specification, or "..." playground |
| 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