Title: Allow to alias None · Issue #9402 · python/mypy · GitHub
Open Graph Title: Allow to alias None · Issue #9402 · python/mypy
X Title: Allow to alias None · Issue #9402 · python/mypy
Description: 🚀 Feature Allow aliasing like T = None. Pitch None as a type on its own, generally does not make sense except as a singleton type and it is used for optional types, which is just an union including None. But in some corner case, None is ...
Open Graph Description: 🚀 Feature Allow aliasing like T = None. Pitch None as a type on its own, generally does not make sense except as a singleton type and it is used for optional types, which is just an union including...
X Description: 🚀 Feature Allow aliasing like T = None. Pitch None as a type on its own, generally does not make sense except as a singleton type and it is used for optional types, which is just an union including...
Opengraph URL: https://github.com/python/mypy/issues/9402
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow to alias None","articleBody":"## 🚀 Feature\r\n\r\nAllow aliasing like `T = None`.\r\n\r\n## Pitch\r\n\r\n`None` as a type on its own, generally does not make sense except as a singleton type and it is used for optional types, which is just an union including `None`. But in some corner case, `None` is not a proper name (ex. cases where Void or Null or Unit matches better) and would need to be aliased and will still be used like `None` is.\r\n\r\nI don’t know if there is anything against it in any PEP.\r\n","author":{"url":"https://github.com/Hibou57","@type":"Person","name":"Hibou57"},"datePublished":"2020-09-03T00:22:52Z","url":"https://github.com/python/mypy/issues/9402"}
| 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:266b60fc-bceb-90c8-75bf-82eeaff13f7b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 88AC:59CDA:297DE6A:362276D:6B000A61 |
| html-safe-nonce | 744e7eed9986d3ed31310a8bd985a299c350b51d11d8dd203e9451fadfaec7d3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OEFDOjU5Q0RBOjI5N0RFNkE6MzYyMjc2RDo2QjAwMEE2MSIsInZpc2l0b3JfaWQiOiI2NzAyMzQ4MDI4Mjg1NTUzMjQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9cb8243ab77301aa6285bfd5ad94856c57ad68b187994e898818fce95ef5263c |
| hovercard-subject-tag | issue:691525596 |
| 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/mypy/9402/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fbc88bbd3d2f636103492edbced4474411ea5d2e61cead527490bee270c7d78d/python/mypy/issues/9402 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fbc88bbd3d2f636103492edbced4474411ea5d2e61cead527490bee270c7d78d/python/mypy/issues/9402 |
| og:image:alt | 🚀 Feature Allow aliasing like T = None. Pitch None as a type on its own, generally does not make sense except as a singleton type and it is used for optional types, which is just an union including... |
| 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 | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| 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 | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width