Title: Provide guidance on PEP 698's strict enforcement feature of typing.override · Issue #1376 · python/typing · GitHub
Open Graph Title: Provide guidance on PEP 698's strict enforcement feature of typing.override · Issue #1376 · python/typing
X Title: Provide guidance on PEP 698's strict enforcement feature of typing.override · Issue #1376 · python/typing
Description: PEP 698 (typing.override) suggests that type-checkers provide a strict enforcement option that would mark method overrides. However, no guidance is provided about the methods __init__ and __new__. These methods are always implicit overri...
Open Graph Description: PEP 698 (typing.override) suggests that type-checkers provide a strict enforcement option that would mark method overrides. However, no guidance is provided about the methods __init__ and __new__. ...
X Description: PEP 698 (typing.override) suggests that type-checkers provide a strict enforcement option that would mark method overrides. However, no guidance is provided about the methods __init__ and __new__. ...
Opengraph URL: https://github.com/python/typing/issues/1376
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Provide guidance on PEP 698's strict enforcement feature of typing.override","articleBody":"PEP 698 (`typing.override`) suggests that type-checkers provide a strict enforcement option that would mark method overrides. However, no guidance is provided about the methods `__init__` and `__new__`. These methods are always implicit overrides (from `object` method). These method do not obey LSP (so their signature doesn't depend on any superclass), which means that override decoration only verifies that you haven't misspelled the method. Should they be exempt from this strict check?\r\n\r\n(I'm not convinced one way or the other, but it would be nice to have some guidance on this.)\r\n\r\nCC'ing @erictraut because we had a brief discussion about this.","author":{"url":"https://github.com/NeilGirdhar","@type":"Person","name":"NeilGirdhar"},"datePublished":"2023-03-22T14:53:09Z","url":"https://github.com/python/typing/issues/1376"}
| 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:40dfd89d-7d65-f2eb-e743-80e124db5fc4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D51C:2714DE:24066D2:30CC314:6B002857 |
| html-safe-nonce | b4631706647123b75ab2cd1ba43a5c0e367dd469dc055857dd16c091d52006fb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTFDOjI3MTRERToyNDA2NkQyOjMwQ0MzMTQ6NkIwMDI4NTciLCJ2aXNpdG9yX2lkIjoiMTU3OTM4NDE1OTQzNDk3NTMxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c11b7367a67b1c9634db4df48f2f898ce9ce85d0a16005fda161ec85b345aa48 |
| hovercard-subject-tag | issue:1635928324 |
| 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/typing/1376/issue_layout |
| twitter:image | https://opengraph.githubassets.com/63f02ecad8ad9c5c97b53ee448e36e216e8be6bf595e47159067c7fcb52a62a0/python/typing/issues/1376 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/63f02ecad8ad9c5c97b53ee448e36e216e8be6bf595e47159067c7fcb52a62a0/python/typing/issues/1376 |
| og:image:alt | PEP 698 (typing.override) suggests that type-checkers provide a strict enforcement option that would mark method overrides. However, no guidance is provided about the methods __init__ and __new__. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | NeilGirdhar |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typing git https://github.com/python/typing.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 24604008 |
| octolytics-dimension-repository_nwo | python/typing |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24604008 |
| octolytics-dimension-repository_network_root_nwo | python/typing |
| 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