Title: Mypy incorrectly says signature is incompatible with supertype when using decorator · Issue #3260 · python/mypy · GitHub
Open Graph Title: Mypy incorrectly says signature is incompatible with supertype when using decorator · Issue #3260 · python/mypy
X Title: Mypy incorrectly says signature is incompatible with supertype when using decorator · Issue #3260 · python/mypy
Description: When checking the code below with mypy v0.501, mypy complains that deco.py:10: error: Signature of "a" incompatible with supertype "A" According to @ilevkivskyi this may be related to #1441. import functools class A: @functools.lru_cache...
Open Graph Description: When checking the code below with mypy v0.501, mypy complains that deco.py:10: error: Signature of "a" incompatible with supertype "A" According to @ilevkivskyi this may be related to #1441. import...
X Description: When checking the code below with mypy v0.501, mypy complains that deco.py:10: error: Signature of "a" incompatible with supertype "A" According to @ilevkivskyi this may be rela...
Opengraph URL: https://github.com/python/mypy/issues/3260
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Mypy incorrectly says signature is incompatible with supertype when using decorator","articleBody":"When checking the code below with mypy v0.501, mypy complains that \r\n\r\n> deco.py:10: error: Signature of \"a\" incompatible with supertype \"A\"\r\n\r\nAccording to @ilevkivskyi this may be related to python/mypy#1441.\r\n\r\n```\r\nimport functools\r\n\r\nclass A:\r\n @functools.lru_cache()\r\n def a(self) -> str: \r\n return 'a'\r\n\r\nclass B(A):\r\n @functools.lru_cache()\r\n def a(self) -> str:\r\n return super().a() + 'b'\r\n```","author":{"url":"https://github.com/fniessink","@type":"Person","name":"fniessink"},"datePublished":"2017-04-26T18:48:44Z","url":"https://github.com/python/mypy/issues/3260"}
| 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:15e1136c-9fac-5e5e-aa80-6ee96627b2ff |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8C1A:18E7F5:E16C44:1264568:6AFFFB74 |
| html-safe-nonce | ebc34c94aac4185e2d95c11d4d6dbdc479121ae57763b96a48b18e0e3805c52b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzFBOjE4RTdGNTpFMTZDNDQ6MTI2NDU2ODo2QUZGRkI3NCIsInZpc2l0b3JfaWQiOiI3OTYyMDk2NTE5Mjc5MDE2ODIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d31ae101d5304e7aaa8dac38251f79de9653f8b4a04b1d1fdb1c4a211e1813ea |
| hovercard-subject-tag | issue:224564455 |
| 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/3260/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8d77277635895cbd639bcd7e5b0fd189898a2f1fe6b220cd51d00f18bda5b286/python/mypy/issues/3260 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8d77277635895cbd639bcd7e5b0fd189898a2f1fe6b220cd51d00f18bda5b286/python/mypy/issues/3260 |
| og:image:alt | When checking the code below with mypy v0.501, mypy complains that deco.py:10: error: Signature of "a" incompatible with supertype "A" According to @ilevkivskyi this may be related to #1441. import... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fniessink |
| 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