Title: functools.partial false negative with higher order functions · Issue #17461 · python/mypy · GitHub
Open Graph Title: functools.partial false negative with higher order functions · Issue #17461 · python/mypy
X Title: functools.partial false negative with higher order functions · Issue #17461 · python/mypy
Description: See #17425 , in particular this comment #17425 (comment) from ilevkivskyi [case testFunctoolsPartialHigherOrder] from functools import partial from typing import Callable def fn(a: int, b: str, c: bytes) -> int: ... def callback1(fn: Cal...
Open Graph Description: See #17425 , in particular this comment #17425 (comment) from ilevkivskyi [case testFunctoolsPartialHigherOrder] from functools import partial from typing import Callable def fn(a: int, b: str, c: ...
X Description: See #17425 , in particular this comment #17425 (comment) from ilevkivskyi [case testFunctoolsPartialHigherOrder] from functools import partial from typing import Callable def fn(a: int, b: str, c: ...
Opengraph URL: https://github.com/python/mypy/issues/17461
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"functools.partial false negative with higher order functions","articleBody":"See https://github.com/python/mypy/pull/17425 , in particular this comment https://github.com/python/mypy/pull/17425#discussion_r1650028681 from ilevkivskyi\r\n```\r\n[case testFunctoolsPartialHigherOrder]\r\nfrom functools import partial\r\nfrom typing import Callable\r\n\r\ndef fn(a: int, b: str, c: bytes) -> int: ...\r\n\r\ndef callback1(fn: Callable[[str, bytes], int]) -> None: ...\r\ndef callback2(fn: Callable[[str, int], int]) -> None: ...\r\n\r\ncallback1(partial(fn, 1))\r\n# TODO: false negative\r\ncallback2(partial(fn, 1))\r\n[builtins fixtures/tuple.pyi]\r\n```","author":{"url":"https://github.com/hauntsaninja","@type":"Person","name":"hauntsaninja"},"datePublished":"2024-07-01T23:09:23Z","url":"https://github.com/python/mypy/issues/17461"}
| 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:867cedc6-762b-c465-35a2-b9ae3265993e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 903A:37BEAD:237A6E9:30632B1:6B003014 |
| html-safe-nonce | 019bc50695264cbd7882261f880e48107ddae8703480266a7d668b4d86fd099c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDNBOjM3QkVBRDoyMzdBNkU5OjMwNjMyQjE6NkIwMDMwMTQiLCJ2aXNpdG9yX2lkIjoiODI3Njk0OTgzODYyNTUxNzU4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6ff0f02d5ca23ca2f6840107b994a4c4831a02c6818078d50a672900f6deb7a5 |
| hovercard-subject-tag | issue:2384885906 |
| 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/17461/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7c3e22b89e16ec882777a91471da5ef499e4f353ce5769e1925b36c0b9009528/python/mypy/issues/17461 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7c3e22b89e16ec882777a91471da5ef499e4f353ce5769e1925b36c0b9009528/python/mypy/issues/17461 |
| og:image:alt | See #17425 , in particular this comment #17425 (comment) from ilevkivskyi [case testFunctoolsPartialHigherOrder] from functools import partial from typing import Callable def fn(a: int, b: str, c: ... |
| 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 | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width