Title: Overloaded function signatures overlap with incompatible return types, class and Callable · Issue #1941 · python/mypy · GitHub
Open Graph Title: Overloaded function signatures overlap with incompatible return types, class and Callable · Issue #1941 · python/mypy
X Title: Overloaded function signatures overlap with incompatible return types, class and Callable · Issue #1941 · python/mypy
Description: from typing import Any, Callable, overload F = Callable[..., Any] class A: ... @overload def f(exit: A) -> A: ... @overload def f(exit: F) -> F: ... gives asd.py:8: error: Overloaded function signatures 1 and 2 overlap with incompatible ...
Open Graph Description: from typing import Any, Callable, overload F = Callable[..., Any] class A: ... @overload def f(exit: A) -> A: ... @overload def f(exit: F) -> F: ... gives asd.py:8: error: Overloaded function signa...
X Description: from typing import Any, Callable, overload F = Callable[..., Any] class A: ... @overload def f(exit: A) -> A: ... @overload def f(exit: F) -> F: ... gives asd.py:8: error: Overloaded function...
Opengraph URL: https://github.com/python/mypy/issues/1941
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Overloaded function signatures overlap with incompatible return types, class and Callable","articleBody":"``` python\nfrom typing import Any, Callable, overload\n\nF = Callable[..., Any]\n\nclass A: ...\n\n@overload\ndef f(exit: A) -> A: ...\n@overload\ndef f(exit: F) -> F: ...\n```\n\ngives\n\n```\nasd.py:8: error: Overloaded function signatures 1 and 2 overlap with incompatible return types\n```\n\nwhich I don't understand. There is no overlap (expect that `A` is also a `Callable`), so, why the message?\n","author":{"url":"https://github.com/tharvik","@type":"Person","name":"tharvik"},"datePublished":"2016-07-26T13:06:48Z","url":"https://github.com/python/mypy/issues/1941"}
| 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:77e0e96b-2bf6-f99e-9ef9-259131c31dc0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 988C:F5AA9:1B981D4:254EEF3:6B0003E4 |
| html-safe-nonce | cf9e3dd7a8a49727aafdcfce8612b6db57ce25cd7323b8bb572ed785198b5aec |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODhDOkY1QUE5OjFCOTgxRDQ6MjU0RUVGMzo2QjAwMDNFNCIsInZpc2l0b3JfaWQiOiI0MDUwOTE3NTA2NDYwNjgxMTg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 47c42895477a17dcbe6e639cfb8926fc1baab113b2e2d9a1aa65249ad762502d |
| hovercard-subject-tag | issue:167602336 |
| 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/1941/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e9e1592c1aa5f6f1d22c0f357b0531fb7b86852da740138fe0a108592127a649/python/mypy/issues/1941 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e9e1592c1aa5f6f1d22c0f357b0531fb7b86852da740138fe0a108592127a649/python/mypy/issues/1941 |
| og:image:alt | from typing import Any, Callable, overload F = Callable[..., Any] class A: ... @overload def f(exit: A) -> A: ... @overload def f(exit: F) -> F: ... gives asd.py:8: error: Overloaded function signa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tharvik |
| 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