Title: @total_ordering support · Issue #4610 · python/mypy · GitHub
Open Graph Title: @total_ordering support · Issue #4610 · python/mypy
X Title: @total_ordering support · Issue #4610 · python/mypy
Description: Please consider the following code: from functools import total_ordering from typing import Any @total_ordering class Ord: def __eq__(self, other: Any) -> bool: return False def __lt__(self, other: "Ord") -> bool: return False Ord() <= O...
Open Graph Description: Please consider the following code: from functools import total_ordering from typing import Any @total_ordering class Ord: def __eq__(self, other: Any) -> bool: return False def __lt__(self, other:...
X Description: Please consider the following code: from functools import total_ordering from typing import Any @total_ordering class Ord: def __eq__(self, other: Any) -> bool: return False def __lt__(self, oth...
Opengraph URL: https://github.com/python/mypy/issues/4610
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@total_ordering support","articleBody":"Please consider the following code:\r\n\r\n```python\r\nfrom functools import total_ordering\r\nfrom typing import Any\r\n\r\n\r\n@total_ordering\r\nclass Ord:\r\n\r\n def __eq__(self, other: Any) -> bool:\r\n return False\r\n\r\n def __lt__(self, other: \"Ord\") -> bool:\r\n return False\r\n\r\n\r\nOrd() \u003c= Ord()\r\n```\r\n\r\nmypy 0.560 (using Python 3.6.4, default flags) complains:\r\n\r\n`test.py:15: error: Unsupported left operand type for \u003c= (\"Ord\")`\r\n\r\nIt would be helpful if mypy would support `@total_ordering`.\r\n","author":{"url":"https://github.com/srittau","@type":"Person","name":"srittau"},"datePublished":"2018-02-21T13:44:48Z","url":"https://github.com/python/mypy/issues/4610"}
| 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:69abbd89-4374-f4be-b0dd-a341aae27784 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D9A0:120A77:2099288:2C55C2B:6B0020AA |
| html-safe-nonce | eb11b43a741ccbdc4f5af4ed9c502d4fe8e3a76ccfa0a83cd0d74af8fa2199e7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUEwOjEyMEE3NzoyMDk5Mjg4OjJDNTVDMkI6NkIwMDIwQUEiLCJ2aXNpdG9yX2lkIjoiMjQzMTU1MDQzMzExMDUzMjI2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 344d103671d7cdcd1f0392c207eca196349d03386a0b60ab19d355c7587658ea |
| hovercard-subject-tag | issue:298975274 |
| 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/4610/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ae7c503304a342f277b2cba0511bae4bec61f79cfe5d344f6487dabecb708aec/python/mypy/issues/4610 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ae7c503304a342f277b2cba0511bae4bec61f79cfe5d344f6487dabecb708aec/python/mypy/issues/4610 |
| og:image:alt | Please consider the following code: from functools import total_ordering from typing import Any @total_ordering class Ord: def __eq__(self, other: Any) -> bool: return False def __lt__(self, other:... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | srittau |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| 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 | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width