Title: Final classes and member functions · Issue #286 · python/typing · GitHub
Open Graph Title: Final classes and member functions · Issue #286 · python/typing
X Title: Final classes and member functions · Issue #286 · python/typing
Description: In some languages (e.g. java) it's possible to declare a class as final so that it can't be subclassed; similarly, it's possible to declare functions as final so that they can't be overridden by sublclasses. It would be great if typing c...
Open Graph Description: In some languages (e.g. java) it's possible to declare a class as final so that it can't be subclassed; similarly, it's possible to declare functions as final so that they can't be overridden by su...
X Description: In some languages (e.g. java) it's possible to declare a class as final so that it can't be subclassed; similarly, it's possible to declare functions as final so that they can't be ...
Mail addresses
notifications@github.com
notifications@github.com
notifications@github.com
Opengraph URL: https://github.com/python/typing/issues/286
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Final classes and member functions","articleBody":"In some languages (e.g. java) it's possible to declare a class as final so that it can't be subclassed; similarly, it's possible to declare functions as `final` so that they can't be overridden by sublclasses. It would be great if typing could support this - so that classes could be annotated as final or their functions as final, and then tools like mypy could enforce it.\n\nE.g.\n\n```\n@final\nclass Foo(object):\n pass\n\n# type error\nclass Bar(Foo):\n pass\n```\n\n(reposting from https://github.com/python/mypy/issues/2032)\n","author":{"url":"https://github.com/dgoldstein0","@type":"Person","name":"dgoldstein0"},"datePublished":"2016-09-28T12:52:52Z","url":"https://github.com/python/typing/issues/286"}
| 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:a6405632-9cd5-3538-3f77-a128cef812c9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8212:11BB24:2225AF9:2E5BCBD:6B00233E |
| html-safe-nonce | fb7793991be0186495476176ad44f996b447f9b4404c9a0a2b67a26d8e6c7423 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjEyOjExQkIyNDoyMjI1QUY5OjJFNUJDQkQ6NkIwMDIzM0UiLCJ2aXNpdG9yX2lkIjoiNTkyMjI5MDQ5MzExODQ4OTQwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5491a622bc937cc6651a00698677c4997d1d183e71866b7923965216c046ac09 |
| hovercard-subject-tag | issue:179764036 |
| 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/286/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ca8c7cd8f5e2acbb082b902f542239931c27eba6a5b6652ab22f4a2ac98ec2ec/python/typing/issues/286 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ca8c7cd8f5e2acbb082b902f542239931c27eba6a5b6652ab22f4a2ac98ec2ec/python/typing/issues/286 |
| og:image:alt | In some languages (e.g. java) it's possible to declare a class as final so that it can't be subclassed; similarly, it's possible to declare functions as final so that they can't be overridden by su... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dgoldstein0 |
| 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