Title: False negative with ParamSpec · Issue #13890 · python/mypy · GitHub
Open Graph Title: False negative with ParamSpec · Issue #13890 · python/mypy
X Title: False negative with ParamSpec · Issue #13890 · python/mypy
Description: On mypy master, this does not have any errors: from typing import Callable, ParamSpec P = ParamSpec('P') def twice(f: Callable[P, int], *args: P.args) -> int: return f(*args) + f(*args) With 0.982 you get main.py:5: error: Name "P.args" ...
Open Graph Description: On mypy master, this does not have any errors: from typing import Callable, ParamSpec P = ParamSpec('P') def twice(f: Callable[P, int], *args: P.args) -> int: return f(*args) + f(*args) With 0.982 ...
X Description: On mypy master, this does not have any errors: from typing import Callable, ParamSpec P = ParamSpec('P') def twice(f: Callable[P, int], *args: P.args) -> int: return f(*args) + f(*args) ...
Opengraph URL: https://github.com/python/mypy/issues/13890
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"False negative with ParamSpec","articleBody":"On mypy master, this does not have any errors:\r\n```\r\nfrom typing import Callable, ParamSpec\r\n\r\nP = ParamSpec('P')\r\n\r\ndef twice(f: Callable[P, int], *args: P.args) -> int:\r\n return f(*args) + f(*args)\r\n```\r\nWith 0.982 you get `main.py:5: error: Name \"P.args\" is not defined`. Not the best error message, but at least you get an error for invalid use.\r\n\r\nThis bisects to https://github.com/python/mypy/pull/13472/files cc @sobolevn ","author":{"url":"https://github.com/hauntsaninja","@type":"Person","name":"hauntsaninja"},"datePublished":"2022-10-13T21:43:57Z","url":"https://github.com/python/mypy/issues/13890"}
| 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:c4ea77d5-c643-f0d9-31b0-c7288d8330f6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AFB6:1CEB9:6544B:8C2E6:6B004EBE |
| html-safe-nonce | 631b86cf7d93aae792d1e5c54f02d07548acd9bd0d234d2e068634edcc462616 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkI2OjFDRUI5OjY1NDRCOjhDMkU2OjZCMDA0RUJFIiwidmlzaXRvcl9pZCI6IjI4NTYwODY1MjI3MjgzMDQzMTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 108c12118762e02c0f4c7160e1397c9c801896c46b80dd37cf29db7a5bb464ac |
| hovercard-subject-tag | issue:1408460757 |
| 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/13890/issue_layout |
| twitter:image | https://opengraph.githubassets.com/209d993bbabb7b148456358802e8754945cbf2ecb97c19f3a88efed52a94682c/python/mypy/issues/13890 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/209d993bbabb7b148456358802e8754945cbf2ecb97c19f3a88efed52a94682c/python/mypy/issues/13890 |
| og:image:alt | On mypy master, this does not have any errors: from typing import Callable, ParamSpec P = ParamSpec('P') def twice(f: Callable[P, int], *args: P.args) -> int: return f(*args) + f(*args) With 0.982 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hauntsaninja |
| hostname | github.com |
| expected-hostname | github.com |
| None | f9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b |
| 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 | b27c5dde30676028abd5c5fc53ce5c9b625f8281 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width