Title: Type checking for `property.{fget,fset,fdel}` · Issue #1112 · python/typing · GitHub
Open Graph Title: Type checking for `property.{fget,fset,fdel}` · Issue #1112 · python/typing
X Title: Type checking for `property.{fget,fset,fdel}` · Issue #1112 · python/typing
Description: When trying to fix an issue in typeshed we found that both mypy and pyright raised incorrect errors that were also inconsistent with one another so I'm creating this issue to facilitate further discussion on resolving this. class A: @pro...
Open Graph Description: When trying to fix an issue in typeshed we found that both mypy and pyright raised incorrect errors that were also inconsistent with one another so I'm creating this issue to facilitate further dis...
X Description: When trying to fix an issue in typeshed we found that both mypy and pyright raised incorrect errors that were also inconsistent with one another so I'm creating this issue to facilitate further...
Opengraph URL: https://github.com/python/typing/issues/1112
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Type checking for `property.{fget,fset,fdel}`","articleBody":"When trying to fix an [issue](https://github.com/python/typeshed/issues/7516) in `typeshed` we found that both `mypy` and `pyright` raised incorrect errors that were also inconsistent with one another so I'm creating this issue to facilitate further discussion on resolving this.\r\n\r\n```python\r\nclass A:\r\n @property\r\n def foo(self):\r\n return 'a'\r\n\r\nA.foo.fget(A())\r\n```\r\n`mypy`: `\"Callable[[A], Any]\" has no attribute \"fget\"`\r\n`pyright`: `Expected 0 positional arguments`\r\n\r\nInitial PR attempt and relevant discussions can be found [here](https://github.com/python/typeshed/pull/7520)","author":{"url":"https://github.com/jpy-git","@type":"Person","name":"jpy-git"},"datePublished":"2022-03-21T23:29:30Z","url":"https://github.com/python/typing/issues/1112"}
| 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:bc485163-7db2-f4e1-1ce6-68094988db10 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9CEE:22BD05:1CAFC28:26AF595:6B00099E |
| html-safe-nonce | dc34136f87ed1e2bb703057f5883d08d81e59318e35b55a0d2b2b8c745f3837d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0VFOjIyQkQwNToxQ0FGQzI4OjI2QUY1OTU6NkIwMDA5OUUiLCJ2aXNpdG9yX2lkIjoiMjg2ODQ0MzcxNDg2OTUyODk5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ee261363c805bdabade5715bdc7a06cb133980434a135a77b6ee5983a08760c7 |
| hovercard-subject-tag | issue:1176071526 |
| 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/typing/1112/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4ae73c0d458623b72f4c98a83a7bb35f7e7b1d520e337c3f7b70b0bf554ac985/python/typing/issues/1112 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4ae73c0d458623b72f4c98a83a7bb35f7e7b1d520e337c3f7b70b0bf554ac985/python/typing/issues/1112 |
| og:image:alt | When trying to fix an issue in typeshed we found that both mypy and pyright raised incorrect errors that were also inconsistent with one another so I'm creating this issue to facilitate further dis... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jpy-git |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typing git https://github.com/python/typing.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 24604008 |
| octolytics-dimension-repository_nwo | python/typing |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24604008 |
| octolytics-dimension-repository_network_root_nwo | python/typing |
| 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