Title: Property, classmethod and staticmethod aliases not supported · Issue #6700 · python/mypy · GitHub
Open Graph Title: Property, classmethod and staticmethod aliases not supported · Issue #6700 · python/mypy
X Title: Property, classmethod and staticmethod aliases not supported · Issue #6700 · python/mypy
Description: MyPy does not support property aliases. Example: $ cat a.py class A: @property def f(self) -> int: return 1 g = f x: int = A().f y: int = A().g $ mypy a.py a.py:8: error: Incompatible types in assignment (expression has type "Callable[[]...
Open Graph Description: MyPy does not support property aliases. Example: $ cat a.py class A: @property def f(self) -> int: return 1 g = f x: int = A().f y: int = A().g $ mypy a.py a.py:8: error: Incompatible types in assi...
X Description: MyPy does not support property aliases. Example: $ cat a.py class A: @property def f(self) -> int: return 1 g = f x: int = A().f y: int = A().g $ mypy a.py a.py:8: error: Incompatible types in a...
Opengraph URL: https://github.com/python/mypy/issues/6700
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Property, classmethod and staticmethod aliases not supported","articleBody":"MyPy does not support property aliases. Example:\r\n\r\n```\r\n$ cat a.py \r\nclass A:\r\n @property\r\n def f(self) -\u003e int:\r\n return 1\r\n g = f\r\n\r\nx: int = A().f\r\ny: int = A().g\r\n$ mypy a.py \r\na.py:8: error: Incompatible types in assignment (expression has type \"Callable[[], int]\", variable has type \"int\")\r\n```","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2019-04-19T09:23:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/6700/mypy/issues/6700"}
| 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:369eb5ec-5223-6665-509c-e59cd57ba441 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3B8:205EEA:16ED4A5:1FFF80D:6968A989 |
| html-safe-nonce | f83421cc15b7ce960e83a77079e3f2c619178b629cbd36d7f755ec8908f28cb1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0I4OjIwNUVFQToxNkVENEE1OjFGRkY4MEQ6Njk2OEE5ODkiLCJ2aXNpdG9yX2lkIjoiNzY4MTAyNjUxNTAwODAwNjUzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a20168a99f82d16a3e3c97a838e66a7333c281e9384ada6209b57a11d005879d |
| hovercard-subject-tag | issue:435112087 |
| 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/6700/issue_layout |
| twitter:image | https://opengraph.githubassets.com/619bbd11144f9725c0bbc5588a1e73062659dacc9279084598081c2e2b3171ca/python/mypy/issues/6700 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/619bbd11144f9725c0bbc5588a1e73062659dacc9279084598081c2e2b3171ca/python/mypy/issues/6700 |
| og:image:alt | MyPy does not support property aliases. Example: $ cat a.py class A: @property def f(self) -> int: return 1 g = f x: int = A().f y: int = A().g $ mypy a.py a.py:8: error: Incompatible types in assi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | serhiy-storchaka |
| hostname | github.com |
| expected-hostname | github.com |
| None | fdc7c66bd36a6c12eb8e771e806db863266e573fc299e77f27505a768d4f8a98 |
| 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 | 3223a6503d318917691422cdadfbe16cd8fb21e5 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width