Title: tuple does not define __new__ · Issue #2091 · python/typeshed · GitHub
Open Graph Title: tuple does not define __new__ · Issue #2091 · python/typeshed
X Title: tuple does not define __new__ · Issue #2091 · python/typeshed
Description: Reporting python/mypy#4991 here. This code to make a subclass of tuple does not pass the test. class A(tuple): def __new__(cls, fields): return super(A, cls).__new__(cls, tuple(fields)) With those settings: python_version=3.5 warn_unused...
Open Graph Description: Reporting python/mypy#4991 here. This code to make a subclass of tuple does not pass the test. class A(tuple): def __new__(cls, fields): return super(A, cls).__new__(cls, tuple(fields)) With those ...
X Description: Reporting python/mypy#4991 here. This code to make a subclass of tuple does not pass the test. class A(tuple): def __new__(cls, fields): return super(A, cls).__new__(cls, tuple(fields)) With those ...
Opengraph URL: https://github.com/python/typeshed/issues/2091
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tuple does not define __new__","articleBody":"Reporting https://github.com/python/mypy/issues/4991 here.\r\n\r\nThis code to make a subclass of tuple does not pass the test.\r\n\r\n```\r\nclass A(tuple):\r\n def __new__(cls, fields):\r\n return super(A, cls).__new__(cls, tuple(fields))\r\n```\r\n\r\nWith those settings:\r\n\r\n```\r\npython_version=3.5\r\nwarn_unused_ignores=True\r\nwarn_redundant_casts=True\r\nstrict_optional=True\r\nscripts_are_modules=True\r\ncheck_untyped_defs=True\r\n```\r\n\r\nUsing mypy 0.590\r\n\r\nAnd it results in\r\n\r\n```\r\n/tmp/test.py:3: error: Too many arguments for \"__new__\" of \"object\"\r\n```","author":{"url":"https://github.com/ltworf","@type":"Person","name":"ltworf"},"datePublished":"2018-05-03T10:40:52Z","url":"https://github.com/python/typeshed/issues/2091"}
| 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:56f8ee26-9b9f-ca4a-d566-ac50f4e80102 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E842:3F9D33:20E46FE:2C9F5E2:6B001F7B |
| html-safe-nonce | 4c126ab4e7bfc8375c789edc56d28b81f21cb79da3fb883525c7f54566a9124a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODQyOjNGOUQzMzoyMEU0NkZFOjJDOUY1RTI6NkIwMDFGN0IiLCJ2aXNpdG9yX2lkIjoiNjcxODg4NzQ3NDg5NjA1MjA5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6b14dd3a9f60cd2eb208315313821ea587d2d9c8fad737537c8f4efe2616eadc |
| hovercard-subject-tag | issue:319868821 |
| 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/typeshed/2091/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dda694be335f7914de507cd4cca7fad3cccff8733a63277f8d98254ac6d56342/python/typeshed/issues/2091 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dda694be335f7914de507cd4cca7fad3cccff8733a63277f8d98254ac6d56342/python/typeshed/issues/2091 |
| og:image:alt | Reporting python/mypy#4991 here. This code to make a subclass of tuple does not pass the test. class A(tuple): def __new__(cls, fields): return super(A, cls).__new__(cls, tuple(fields)) With those ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ltworf |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typeshed git https://github.com/python/typeshed.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 31696383 |
| octolytics-dimension-repository_nwo | python/typeshed |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31696383 |
| octolytics-dimension-repository_network_root_nwo | python/typeshed |
| 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