Title: PEP 800: Disjoint bases · Issue #14444 · python/typeshed · GitHub
Open Graph Title: PEP 800: Disjoint bases · Issue #14444 · python/typeshed
X Title: PEP 800: Disjoint bases · Issue #14444 · python/typeshed
Description: I just posted https://peps.python.org/pep-0800/, which proposes adding an @solid_base decorator to the type system. "Solid bases" are classes that don't allow inheritance from other solid bases, which includes most builtins. Usually our ...
Open Graph Description: I just posted https://peps.python.org/pep-0800/, which proposes adding an @solid_base decorator to the type system. "Solid bases" are classes that don't allow inheritance from other solid bases, wh...
X Description: I just posted https://peps.python.org/pep-0800/, which proposes adding an @solid_base decorator to the type system. "Solid bases" are classes that don't allow inheritance from other s...
Opengraph URL: https://github.com/python/typeshed/issues/14444
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PEP 800: Disjoint bases","articleBody":"I just posted https://peps.python.org/pep-0800/, which proposes adding an `@solid_base` decorator to the type system. \"Solid bases\" are classes that don't allow inheritance from other solid bases, which includes most builtins.\n\nUsually our policy is not to use draft PEPs in typeshed until they are accepted. I think in this case, it's worth making an exception:\n\n- Even if type checkers don't support the decorator, they'll still be able to use the stubs with no regression in functionality. They'll just see an identity decorator on some classes. I tried this just now in #14443 and CI shows that mypy and pyright are unaffected by the presence of the decorator on `int` and `str`. (There are some other CI failures for unrelated reasons.)\n- While type checkers could implement the feature before typeshed adds `@solid_base` decorators, the feature will be a lot more useful if standard library classes are correctly marked with the decorator.\n\nIf we're in agreement, I would propose to start adding the decorator in typeshed once there is a `typing_extensions` release with the new feature. I can then also add stubtest support for checking whether the decorator should be present.","author":{"url":"https://github.com/JelleZijlstra","@type":"Person","name":"JelleZijlstra"},"datePublished":"2025-07-24T01:28:01Z","url":"https://github.com/python/typeshed/issues/14444"}
| 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:40569333-3643-7f44-9d8f-cfe3230a0ea8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DFEA:9E1B2:2FCABD6:3F3C139:6B00293E |
| html-safe-nonce | 86ac6aced9a1c0dfe9b1499ed24fbb2aecc963cec524403429578c758679df30 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkVBOjlFMUIyOjJGQ0FCRDY6M0YzQzEzOTo2QjAwMjkzRSIsInZpc2l0b3JfaWQiOiI0NDY3Nzk4OTgwODA5NDY4MjIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d61f048264d42b2e2af2de33bca33d1a68e1135a0a4b24a0ec22c1145d21300d |
| hovercard-subject-tag | issue:3258157614 |
| 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/14444/issue_layout |
| twitter:image | https://opengraph.githubassets.com/adf424608a8456e2e7d86d5c843b21974128d7818af97f045ed292c7a63a2ee4/python/typeshed/issues/14444 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/adf424608a8456e2e7d86d5c843b21974128d7818af97f045ed292c7a63a2ee4/python/typeshed/issues/14444 |
| og:image:alt | I just posted https://peps.python.org/pep-0800/, which proposes adding an @solid_base decorator to the type system. "Solid bases" are classes that don't allow inheritance from other solid bases, wh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JelleZijlstra |
| 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