Title: How to specify constants of type NoneType? · Issue #2 · python/typeshed · GitHub
Open Graph Title: How to specify constants of type NoneType? · Issue #2 · python/typeshed
X Title: How to specify constants of type NoneType? · Issue #2 · python/typeshed
Description: PEP 484 says "By default, None is an invalid value for any type". However, in the Python standard library there are class-level and module-level constants that are legitimately None. Examples: formatter.py.AS_IS hmac.digest_size cgi.Fiel...
Open Graph Description: PEP 484 says "By default, None is an invalid value for any type". However, in the Python standard library there are class-level and module-level constants that are legitimately None. Examples: form...
X Description: PEP 484 says "By default, None is an invalid value for any type". However, in the Python standard library there are class-level and module-level constants that are legitimately None. Exam...
Opengraph URL: https://github.com/python/typeshed/issues/2
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to specify constants of type NoneType?","articleBody":"PEP 484 says \"By default, None is an invalid value for any type\". However, in the Python standard library there are class-level and module-level constants that are legitimately None.\n\nExamples:\n\n```\n formatter.py.AS_IS\n hmac.digest_size\n cgi.FieldStorage.FieldStorageClass\n copy.PyStringMap\n```\n\nShould we allow these to be declared using e.g. something like\n\n```\n AS_IS = Undefined(NoneType)\n```\n\n?\n","author":{"url":"https://github.com/matthiaskramm","@type":"Person","name":"matthiaskramm"},"datePublished":"2015-03-12T21:22:06Z","url":"https://github.com/python/typeshed/issues/2"}
| 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:ca6d8894-0fc0-97b4-6da7-57d9f6eb7af5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B52:5314B:273AA6C:3353114:6B000419 |
| html-safe-nonce | 477e6662e120b810580dc50ebf7419fe4db87bcd1991d085c49e42ab95ad231d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjUyOjUzMTRCOjI3M0FBNkM6MzM1MzExNDo2QjAwMDQxOSIsInZpc2l0b3JfaWQiOiIzODUzNDY4MzkzNzU1NjQwODU3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e142dab0b3ea8d8a2acd88caac6e524eb6a010610294bd5e958222caccfd915d |
| hovercard-subject-tag | issue:60906193 |
| 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/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a7a7a101c786a32bbffcb230ba16d6229e6b851adeb589828e1b16eaa371cd01/python/typeshed/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a7a7a101c786a32bbffcb230ba16d6229e6b851adeb589828e1b16eaa371cd01/python/typeshed/issues/2 |
| og:image:alt | PEP 484 says "By default, None is an invalid value for any type". However, in the Python standard library there are class-level and module-level constants that are legitimately None. Examples: form... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | matthiaskramm |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| 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 | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width