René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ca6d8894-0fc0-97b4-6da7-57d9f6eb7af5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9B52:5314B:273AA6C:3353114:6B000419
html-safe-nonce477e6662e120b810580dc50ebf7419fe4db87bcd1991d085c49e42ab95ad231d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjUyOjUzMTRCOjI3M0FBNkM6MzM1MzExNDo2QjAwMDQxOSIsInZpc2l0b3JfaWQiOiIzODUzNDY4MzkzNzU1NjQwODU3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace142dab0b3ea8d8a2acd88caac6e524eb6a010610294bd5e958222caccfd915d
hovercard-subject-tagissue:60906193
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/typeshed/2/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a7a7a101c786a32bbffcb230ba16d6229e6b851adeb589828e1b16eaa371cd01/python/typeshed/issues/2
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a7a7a101c786a32bbffcb230ba16d6229e6b851adeb589828e1b16eaa371cd01/python/typeshed/issues/2
og:image:altPEP 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamematthiaskramm
hostnamegithub.com
expected-hostnamegithub.com
None0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729
turbo-cache-controlno-preview
go-importgithub.com/python/typeshed git https://github.com/python/typeshed.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id31696383
octolytics-dimension-repository_nwopython/typeshed
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id31696383
octolytics-dimension-repository_network_root_nwopython/typeshed
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release16a11879678aaf97e2a42c33ee70830aa084fa37
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/typeshed/issues/2#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fissues%2F2
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fissues%2F2
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Ftypeshed
Reloadhttps://github.com/python/typeshed/issues/2
Reloadhttps://github.com/python/typeshed/issues/2
Reloadhttps://github.com/python/typeshed/issues/2
pythonhttps://github.com/python
typeshedhttps://github.com/python/typeshed
Codehttps://github.com/python/typeshed
Issues196 (196)https://github.com/python/typeshed/issues
Pull requests251 (251)https://github.com/python/typeshed/pulls
Actionshttps://github.com/python/typeshed/actions
Security and qualityhttps://github.com/python/typeshed/security
Insightshttps://github.com/python/typeshed/insights
https://github.com/python/typeshed
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/2
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/2
How to specify constants of type NoneType?https://github.com/python/typeshed/issues/2#top
https://github.com/matthiaskramm
matthiaskrammhttps://github.com/matthiaskramm
on Mar 12, 2015https://github.com/python/typeshed/issues/2#issue-60906193
https://github.com/vlasovskikh
vlasovskikhhttps://github.com/vlasovskikh
on Jun 26, 2015https://github.com/python/typeshed/issues/2#issuecomment-115691851
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Jan 26, 2016https://github.com/python/typeshed/issues/2#issuecomment-175292672
https://github.com/matthiaskramm
matthiaskrammhttps://github.com/matthiaskramm
on Jan 26, 2016https://github.com/python/typeshed/issues/2#issuecomment-175295601
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Jan 27, 2016https://github.com/python/typeshed/issues/2#issuecomment-175313443
@JukkaLhttps://github.com/JukkaL
momandinehttps://github.com/momandine
on Jul 5, 2016https://github.com/python/typeshed/issues/2#event-713185803
Describe type vars with co/contra variance. Fixes python#2.https://github.com/momandine/typeshed/commit/5f110c7992051c40bc6fd92f0575f3b108c4ce07
python#2https://github.com/python/typeshed/issues/2
https://docs.github.com/articles/closing-issues-via-commit-messages
5f110c7https://github.com/momandine/typeshed/commit/5f110c7992051c40bc6fd92f0575f3b108c4ce07
Merge pull request python#2 from python/masterhttps://github.com/momandine/typeshed/commit/8dc6c1e396fb95dcb5a83d5998b75a42febebd51
python#2https://github.com/python/typeshed/issues/2
https://docs.github.com/articles/closing-issues-via-commit-messages
8dc6c1ehttps://github.com/momandine/typeshed/commit/8dc6c1e396fb95dcb5a83d5998b75a42febebd51
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Oct 27, 2016https://github.com/python/typeshed/issues/2#issuecomment-256531644
rowilliahttps://github.com/rowillia
on Dec 29, 2016https://github.com/python/typeshed/issues/2#event-906972851
Add stubs for geohash (python#2)https://github.com/rowillia/typeshed/commit/f901a57fe10d12ae044c5b7487bfc1b49726b8c6
python#2https://github.com/python/typeshed/issues/2
f901a57https://github.com/rowillia/typeshed/commit/f901a57fe10d12ae044c5b7487bfc1b49726b8c6
rowilliahttps://github.com/rowillia
on Jan 11, 2017https://github.com/python/typeshed/issues/2#event-919797820
Add stubs for geohash (python#2)https://github.com/rowillia/typeshed/commit/d61ca6dd5d02f2fad45ed30f566f82d9d5e1f69c
python#2https://github.com/python/typeshed/issues/2
d61ca6dhttps://github.com/rowillia/typeshed/commit/d61ca6dd5d02f2fad45ed30f566f82d9d5e1f69c
Add stubs for geohash (python#2)https://github.com/rowillia/typeshed/commit/a4c3edcaac3bf811292675e1c3ff2c8dad910da8
python#2https://github.com/python/typeshed/issues/2
a4c3edchttps://github.com/rowillia/typeshed/commit/a4c3edcaac3bf811292675e1c3ff2c8dad910da8
gvanrossumhttps://github.com/gvanrossum
help wantedhttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22help%20wanted%22
on Mar 29, 2017https://github.com/python/typeshed/issues/2#event-1021015149
JelleZijlstrahttps://github.com/JelleZijlstra
on Apr 23, 2017https://github.com/python/typeshed/issues/2#event-1053600939
add some missing constantshttps://github.com/JelleZijlstra/typeshed/commit/efb6e8a762ab7d0de1499302ca91bf91dd524115
https://docs.github.com/articles/closing-issues-via-commit-messages
efb6e8ahttps://github.com/JelleZijlstra/typeshed/commit/efb6e8a762ab7d0de1499302ca91bf91dd524115
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Apr 23, 2017https://github.com/python/typeshed/issues/2#issuecomment-296413117
python/mypy#3024https://github.com/python/mypy/pull/3024
@matthiaskrammhttps://github.com/matthiaskramm
ambvhttps://github.com/ambv
completedhttps://github.com/python/typeshed/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1198https://github.com/python/typeshed/pull/1198
on Apr 24, 2017https://github.com/python/typeshed/issues/2#event-1055644485
ambvhttps://github.com/ambv
on Apr 24, 2017https://github.com/python/typeshed/issues/2#event-1055644525
add some missing constants (#1198)https://github.com/python/typeshed/commit/6f5c6b5078f6fbc14ed6383027d9c53b0f61e72a
#1198https://github.com/python/typeshed/pull/1198
https://docs.github.com/articles/closing-issues-via-commit-messages
6f5c6b5https://github.com/python/typeshed/commit/6f5c6b5078f6fbc14ed6383027d9c53b0f61e72a
cocoatomohttps://github.com/cocoatomo
on Jul 16, 2018https://github.com/python/typeshed/issues/2#event-1735731126
Merge pull request python#2 from cocoatomo/transforms2https://github.com/cocoatomo/typeshed/commit/28bed78ca42f0eaa8f2d746eda3d588b6befba92
python#2https://github.com/python/typeshed/issues/2
28bed78https://github.com/cocoatomo/typeshed/commit/28bed78ca42f0eaa8f2d746eda3d588b6befba92
hatal175https://github.com/hatal175
on Apr 8, 2021https://github.com/python/typeshed/issues/2#event-4571691141
Change Tuple to tuple python#2https://github.com/hatal175/typeshed/commit/6188375afa982f5d624a58669c2eb847e1c0c321
python#2https://github.com/python/typeshed/issues/2
6188375https://github.com/hatal175/typeshed/commit/6188375afa982f5d624a58669c2eb847e1c0c321
AlexWaygoodhttps://github.com/AlexWaygood
on Dec 6, 2021https://github.com/python/typeshed/issues/2#event-5722291692
Address review #2https://github.com/AlexWaygood/typeshed/commit/ade1420bf8f69fd198358f3b6a052612340a3a1a
#2https://github.com/AlexWaygood/typeshed/pull/2
ade1420https://github.com/AlexWaygood/typeshed/commit/ade1420bf8f69fd198358f3b6a052612340a3a1a
amaslennhttps://github.com/amaslenn
on Oct 16, 2022https://github.com/python/typeshed/issues/2#event-7596510047
Address review comments python#2https://github.com/amaslenn/typeshed/commit/561baa126f3570cc5717c64f5c30db2d7f208cae
python#2https://github.com/python/typeshed/issues/2
561baa1https://github.com/amaslenn/typeshed/commit/561baa126f3570cc5717c64f5c30db2d7f208cae
amaslennhttps://github.com/amaslenn
on Oct 28, 2022https://github.com/python/typeshed/issues/2#event-7690277888
Make changes to pass flake8 (python#2)https://github.com/amaslenn/typeshed/commit/416ba9cf3beeb0f214835ec9f1aeae17035269d8
python#2https://github.com/python/typeshed/issues/2
416ba9chttps://github.com/amaslenn/typeshed/commit/416ba9cf3beeb0f214835ec9f1aeae17035269d8
alexeev-proghttps://github.com/alexeev-prog
on May 27, 2025https://github.com/python/typeshed/issues/2#event-17830142806
fix overrided init methods python#2https://github.com/alexeev-prog/typeshed/commit/082f7626385157820ae8a46f93dd49307db348ac
python#2https://github.com/python/typeshed/issues/2
082f762https://github.com/alexeev-prog/typeshed/commit/082f7626385157820ae8a46f93dd49307db348ac
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/typeshed/issues/2
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/typeshed/issues/2
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.