Title: Mypy doesn't ensure self types are reasonable · Issue #2374 · python/mypy · GitHub
Open Graph Title: Mypy doesn't ensure self types are reasonable · Issue #2374 · python/mypy
X Title: Mypy doesn't ensure self types are reasonable · Issue #2374 · python/mypy
Description: For example, this typechecks cleanly: class C: def f(self: str) -> None: self.capitalize() Related to #2193.
Open Graph Description: For example, this typechecks cleanly: class C: def f(self: str) -> None: self.capitalize() Related to #2193.
X Description: For example, this typechecks cleanly: class C: def f(self: str) -> None: self.capitalize() Related to #2193.
Opengraph URL: https://github.com/python/mypy/issues/2374
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Mypy doesn't ensure self types are reasonable","articleBody":"For example, this typechecks cleanly:\n\n``` py\nclass C:\n def f(self: str) -> None:\n self.capitalize()\n```\n\nRelated to #2193.\n","author":{"url":"https://github.com/ddfisher","@type":"Person","name":"ddfisher"},"datePublished":"2016-10-28T23:52:43Z","url":"https://github.com/python/mypy/issues/2374"}
| 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:1b3dab8c-120e-56fa-ff53-c0f4263379b2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E46:1EE55B:1A415EF:23C3E1A:6B000570 |
| html-safe-nonce | 9a776b5b09f205b3afe120c4a05def9c340bb766874907322f0a3b786c5c625d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTQ2OjFFRTU1QjoxQTQxNUVGOjIzQzNFMUE6NkIwMDA1NzAiLCJ2aXNpdG9yX2lkIjoiODA3NzA5NjU3NDAwMzQ1OTY4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b7d70d74d60907d038f18b4764079f5bf1eb59990a13f75a7d1e7d78fedc4a90 |
| hovercard-subject-tag | issue:186045316 |
| 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/2374/issue_layout |
| twitter:image | https://opengraph.githubassets.com/38ab0815691edc1470ad8049103c97a64c965d76183c3b9f582b5738db109891/python/mypy/issues/2374 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/38ab0815691edc1470ad8049103c97a64c965d76183c3b9f582b5738db109891/python/mypy/issues/2374 |
| og:image:alt | For example, this typechecks cleanly: class C: def f(self: str) -> None: self.capitalize() Related to #2193. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ddfisher |
| 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