Title: Recursive use of ParamSpec · Issue #13191 · python/mypy · GitHub
Open Graph Title: Recursive use of ParamSpec · Issue #13191 · python/mypy
X Title: Recursive use of ParamSpec · Issue #13191 · python/mypy
Description: Bug Report Passing ParamSpec'd function (e.g. named spawn) to itself results in an error: Argument 1 to "spawn" has incompatible type "Callable[[Arg(Callable[P, T], 'f'), **P], str]"; expected "Callable[[Arg(Callable[P, T], 'f'), **P], s...
Open Graph Description: Bug Report Passing ParamSpec'd function (e.g. named spawn) to itself results in an error: Argument 1 to "spawn" has incompatible type "Callable[[Arg(Callable[P, T], 'f'), **P], str]"; expected "Cal...
X Description: Bug Report Passing ParamSpec'd function (e.g. named spawn) to itself results in an error: Argument 1 to "spawn" has incompatible type "Callable[[Arg(Callable[P, T], 'f'),...
Opengraph URL: https://github.com/python/mypy/issues/13191
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Recursive use of ParamSpec","articleBody":"**Bug Report**\r\n\r\nPassing `ParamSpec`'d function (e.g. named `spawn`) to itself results in an error:\r\n```\r\nArgument 1 to \"spawn\" has incompatible type \"Callable[[Arg(Callable[P, T], 'f'), **P], str]\";\r\n expected \"Callable[[Arg(Callable[P, T], 'f'), **P], str]\"\r\n```\r\n^ indentation added to highlight that the 'actual' and 'expected' types are the same (at least in their rendered form)\r\n\r\nMy motivation was to type-annotate `Greenlet.spawn` of the `gevent` library.\r\n\r\n**To Reproduce**\r\n\r\nGist URL: https://gist.github.com/05a7c5bb1a380684d82210e5589fb048\r\nPlayground URL: https://mypy-play.net/?mypy=latest&python=3.10&gist=05a7c5bb1a380684d82210e5589fb048\r\n\r\n**Your Environment**\r\n\r\n- Mypy version used: 0.961\r\n- Python version used: 3.10","author":{"url":"https://github.com/ikonst","@type":"Person","name":"ikonst"},"datePublished":"2022-07-19T18:46:31Z","url":"https://github.com/python/mypy/issues/13191"}
| 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:08e7f5b0-e37d-574d-53db-2bd0bc80fde5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B116:1F7AC:1F8B4A:2C38B2:6B00580B |
| html-safe-nonce | 4c9de35040b4c1c350d805988013111e25192f1e6c02facf317565f8f2318c95 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTE2OjFGN0FDOjFGOEI0QToyQzM4QjI6NkIwMDU4MEIiLCJ2aXNpdG9yX2lkIjoiMjY1MTU0MDA3NTM1MDg3NDEyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3e54edb9caaa7da8b6acc696c0ccbaf826fff53f4984c661be5aae04784309b2 |
| hovercard-subject-tag | issue:1309914160 |
| 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/13191/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0c15e8227a0fa231948a5efe6b4429d68261a5825fbb6e55715b5abac6e250c2/python/mypy/issues/13191 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0c15e8227a0fa231948a5efe6b4429d68261a5825fbb6e55715b5abac6e250c2/python/mypy/issues/13191 |
| og:image:alt | Bug Report Passing ParamSpec'd function (e.g. named spawn) to itself results in an error: Argument 1 to "spawn" has incompatible type "Callable[[Arg(Callable[P, T], 'f'), **P], str]"; expected "Cal... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ikonst |
| hostname | github.com |
| expected-hostname | github.com |
| None | 29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73 |
| 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 | eacd927ba6112e3b01ba99c762bd699a4a4f5df7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width