Title: Perhaps declare a `__new__` instead of an `__init__` for `str` and other similar types · Issue #4514 · python/typeshed · GitHub
Open Graph Title: Perhaps declare a `__new__` instead of an `__init__` for `str` and other similar types · Issue #4514 · python/typeshed
X Title: Perhaps declare a `__new__` instead of an `__init__` for `str` and other similar types · Issue #4514 · python/typeshed
Description: At typeshed/stdlib/2and3/builtins.pyi Line 446 in 2330083 class str(Sequence[str], _str_base): , an __init__ is declared for str As I understand it, str has no proper __init__, it only has a proper __new__. I came to this, thinking again...
Open Graph Description: At typeshed/stdlib/2and3/builtins.pyi Line 446 in 2330083 class str(Sequence[str], _str_base): , an __init__ is declared for str As I understand it, str has no proper __init__, it only has a proper...
X Description: At typeshed/stdlib/2and3/builtins.pyi Line 446 in 2330083 class str(Sequence[str], _str_base): , an __init__ is declared for str As I understand it, str has no proper __init__, it only has a proper...
Opengraph URL: https://github.com/python/typeshed/issues/4514
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Perhaps declare a `__new__` instead of an `__init__` for `str` and other similar types","articleBody":"At https://github.com/python/typeshed/blob/23300837329ec7f14578344f40f72d866b342dd8/stdlib/2and3/builtins.pyi#L446 , an `__init__` is declared for `str`\r\n\r\nAs I understand it, `str` has no proper `__init__`, it only has a proper `__new__`.\r\n\r\nI came to this, thinking again about this issue in another repository: https://github.com/python/mypy/issues/9405","author":{"url":"https://github.com/Hibou57","@type":"Person","name":"Hibou57"},"datePublished":"2020-09-06T00:14:31Z","url":"https://github.com/python/typeshed/issues/4514"}
| 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:db114755-ea05-bb5a-c8f9-d0669de92cf2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A448:1A12A9:38FBA:4CAF2:6B001A3A |
| html-safe-nonce | e265e7cbd71a95a020dee571be877a775f6e42a74af9ed3854aa9e6fd2ba543d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDQ4OjFBMTJBOTozOEZCQTo0Q0FGMjo2QjAwMUEzQSIsInZpc2l0b3JfaWQiOiI5NjQ3MTEyNTkxOTI2OTUzNTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | abc7b35f43143f4980aed2aeb7431f1472b10fac67322e027866b57a55410190 |
| hovercard-subject-tag | issue:694211542 |
| 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/4514/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c222d7421d17bb84499b71ec05e488c2396bcb9fb84d925b0b6b27c354c4b947/python/typeshed/issues/4514 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c222d7421d17bb84499b71ec05e488c2396bcb9fb84d925b0b6b27c354c4b947/python/typeshed/issues/4514 |
| og:image:alt | At typeshed/stdlib/2and3/builtins.pyi Line 446 in 2330083 class str(Sequence[str], _str_base): , an __init__ is declared for str As I understand it, str has no proper __init__, it only has a proper... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Hibou57 |
| 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