Title: `bytes` should implement `__new__` · Issue #2630 · python/typeshed · GitHub
Open Graph Title: `bytes` should implement `__new__` · Issue #2630 · python/typeshed
X Title: `bytes` should implement `__new__` · Issue #2630 · python/typeshed
Description: This seems like a similar issue to #2091. The bytes type implements __init__ but doesn't appear to provide an overload for __new__. This makes it harder for subclasses of bytes to define their own behaviour for __new__. typeshed/stdlib/3...
Open Graph Description: This seems like a similar issue to #2091. The bytes type implements __init__ but doesn't appear to provide an overload for __new__. This makes it harder for subclasses of bytes to define their own ...
X Description: This seems like a similar issue to #2091. The bytes type implements __init__ but doesn't appear to provide an overload for __new__. This makes it harder for subclasses of bytes to define their ...
Opengraph URL: https://github.com/python/typeshed/issues/2630
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`bytes` should implement `__new__`","articleBody":"This seems like a similar issue to #2091. The `bytes` type implements `__init__` but doesn't appear to provide an overload for `__new__`. This makes it harder for subclasses of `bytes` to define their own behaviour for `__new__`.\r\n\r\nhttps://github.com/python/typeshed/blob/9c3978e33739cef4b5b617a226c24cb4e1ba575b/stdlib/3/builtins.pyi#L344-L355\r\n\r\nThis also appears to be the case for some of the other builtins (e.g. `str`)\r\n\r\nhttps://github.com/python/typeshed/blob/9c3978e33739cef4b5b617a226c24cb4e1ba575b/stdlib/3/builtins.pyi#L267-L272\r\n","author":{"url":"https://github.com/mystor","@type":"Person","name":"mystor"},"datePublished":"2018-11-25T19:16:48Z","url":"https://github.com/python/typeshed/issues/2630"}
| 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:8549d4fb-64bf-f2a1-9a6d-2da8e6f2dce9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD6E:F5AA9:1FC726E:2B27648:6B001A33 |
| html-safe-nonce | a2715690f8713a3833e75c7e34a6e6ac8faa7377e229556491f04e37989b4eb8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDZFOkY1QUE5OjFGQzcyNkU6MkIyNzY0ODo2QjAwMUEzMyIsInZpc2l0b3JfaWQiOiI1OTg5MTg3MzMzMzkxMDA2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 035b7f6910e3792f4ff18b5625892c2922442119186a04d09e24351f1b489b1e |
| hovercard-subject-tag | issue:384109154 |
| 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/2630/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4db7e6f5fd6dd9cc8519050f9bf0ceabf79b708fa5e8652862d82d28d451f623/python/typeshed/issues/2630 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4db7e6f5fd6dd9cc8519050f9bf0ceabf79b708fa5e8652862d82d28d451f623/python/typeshed/issues/2630 |
| og:image:alt | This seems like a similar issue to #2091. The bytes type implements __init__ but doesn't appear to provide an overload for __new__. This makes it harder for subclasses of bytes to define their own ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mystor |
| hostname | github.com |
| expected-hostname | github.com |
| None | a2dd2291b1b13cc9c06f27ec92fa3dbaf34116fc24c9347b8539db61884c59f4 |
| 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 | 70121d4e855ee0bb7b75cf15d061d91f8863c0f8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width