Title: Types for complex.__new__ should be any numeric type · Issue #8440 · python/typeshed · GitHub
Open Graph Title: Types for complex.__new__ should be any numeric type · Issue #8440 · python/typeshed
X Title: Types for complex.__new__ should be any numeric type · Issue #8440 · python/typeshed
Description: The types for the arguments to complex.__new__ should be any numeric type, not just float. c1 = complex(1, 2) c2 = complex(1, c1) This code is valid, but the second line reports an error that complex is incompatible with float. typeshed/...
Open Graph Description: The types for the arguments to complex.__new__ should be any numeric type, not just float. c1 = complex(1, 2) c2 = complex(1, c1) This code is valid, but the second line reports an error that compl...
X Description: The types for the arguments to complex.__new__ should be any numeric type, not just float. c1 = complex(1, 2) c2 = complex(1, c1) This code is valid, but the second line reports an error that compl...
Opengraph URL: https://github.com/python/typeshed/issues/8440
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":" Types for complex.__new__ should be any numeric type","articleBody":"The types for the arguments to `complex.__new__` should be any numeric type, not just float.\r\n\r\n```\r\nc1 = complex(1, 2)\r\nc2 = complex(1, c1)\r\n```\r\n\r\nThis code is valid, but the second line reports an error that complex is incompatible with float.\r\n\r\nhttps://github.com/python/typeshed/blob/f550c24886d5daa84b70fe2960b93fa05ea2eb0b/stdlib/builtins.pyi#L368","author":{"url":"https://github.com/smlerman","@type":"Person","name":"smlerman"},"datePublished":"2022-07-29T16:23:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":20},"url":"https://github.com/8440/typeshed/issues/8440"}
| 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:02bba327-8263-6c8b-d03e-986ca6766893 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 921C:332343:487485:694B91:6A637048 |
| html-safe-nonce | 8f858b2e0ccc2fac5667cb5a4c01edf1bdece3928623a17002560d0a97cd5969 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjFDOjMzMjM0Mzo0ODc0ODU6Njk0QjkxOjZBNjM3MDQ4IiwidmlzaXRvcl9pZCI6IjY1MTc2MjE2ODI0NDI4MjU4MDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3765e45ee53169f49dd0c9671fc53c5643e839aad70cd45fcfb3564cb938237b |
| hovercard-subject-tag | issue:1322455657 |
| 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/8440/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1dab364d5cab707acc31c9c3d08db4c08d16c87e5587a7299bceacca1b36f2ef/python/typeshed/issues/8440 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1dab364d5cab707acc31c9c3d08db4c08d16c87e5587a7299bceacca1b36f2ef/python/typeshed/issues/8440 |
| og:image:alt | The types for the arguments to complex.__new__ should be any numeric type, not just float. c1 = complex(1, 2) c2 = complex(1, c1) This code is valid, but the second line reports an error that compl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | smlerman |
| hostname | github.com |
| expected-hostname | github.com |
| None | e7b5617850fbcd6d10fe2b7c56398444bccb5f3a58a4a18c6d363971295bcd03 |
| 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 | aa341b3f432dc63fa9633042725aec601722a352 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width