René's URL Explorer Experiment


Title: Support functional API for Enum creation · Issue #2306 · python/mypy · GitHub

Open Graph Title: Support functional API for Enum creation · Issue #2306 · python/mypy

X Title: Support functional API for Enum creation · Issue #2306 · python/mypy

Description: The enum.Enum class (new in Python 3.4, also backported as enum34) supports several short forms of creating an Enum type, described under functional API: A = Enum('A', 'x y z') B = Enum('B', ('p', 'q')) These are equivalent to class A(En...

Open Graph Description: The enum.Enum class (new in Python 3.4, also backported as enum34) supports several short forms of creating an Enum type, described under functional API: A = Enum('A', 'x y z') B = Enum('B', ('p', ...

X Description: The enum.Enum class (new in Python 3.4, also backported as enum34) supports several short forms of creating an Enum type, described under functional API: A = Enum('A', 'x y z') B = ...

Opengraph URL: https://github.com/python/mypy/issues/2306

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support functional API for Enum creation","articleBody":"The `enum.Enum` class (new in Python 3.4, also backported as enum34) supports several short forms of creating an Enum type, described under [functional API](https://docs.python.org/3/library/enum.html#functional-api):\n\n``` python\nA = Enum('A', 'x y z')\nB = Enum('B', ('p', 'q'))\n```\n\nThese are equivalent to\n\n``` python\nclass A(Enum):\n    x = 1\n    y = 2\n    z = 3\nclass B(Enum):\n    p = 1\n    q = 2\n```\n\nSome other syntactic variants are also allowed:\n\n``` python\nA = Enum('A', 'x,y,z')\nA = Enum('A', 'x, y, z')\nB = Enum('B', ['p', 'q'])\n```\n\nThe values can also be expressed as a list of tuples:\n\n``` python\n[('cyan', 4), ('magenta', 5), ('yellow', 6)]\n```\n\nor a mapping:\n\n``` python\n{'chartreuse': 7, 'sea_green': 11, 'rosemary': 42}\n```\n","author":{"url":"https://github.com/gvanrossum","@type":"Person","name":"gvanrossum"},"datePublished":"2016-10-24T17:04:05Z","url":"https://github.com/python/mypy/issues/2306"}

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:4450f687-6cc3-6f5f-c6ff-d6235841945a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8F7C:BACA4:2830162:34CB206:6B000A76
html-safe-nonce6f31d390d852828371b246f7569d1debfd80a0b23bd4c4d96e54ade436fd9c17
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjdDOkJBQ0E0OjI4MzAxNjI6MzRDQjIwNjo2QjAwMEE3NiIsInZpc2l0b3JfaWQiOiIyOTczNjgzNTAzNjU4NDYxMzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac43725133c4ff95d8480077dba1a6ebca4b29ce895a2def0542e463ea60daf447
hovercard-subject-tagissue:184898794
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/mypy/2306/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ba559e913a8de6eec553b0c0feb37b35e13dff81a17317d5d79db0d053351d05/python/mypy/issues/2306
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ba559e913a8de6eec553b0c0feb37b35e13dff81a17317d5d79db0d053351d05/python/mypy/issues/2306
og:image:altThe enum.Enum class (new in Python 3.4, also backported as enum34) supports several short forms of creating an Enum type, described under functional API: A = Enum('A', 'x y z') B = Enum('B', ('p', ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegvanrossum
hostnamegithub.com
expected-hostnamegithub.com
None0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729
turbo-cache-controlno-preview
go-importgithub.com/python/mypy git https://github.com/python/mypy.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id7053637
octolytics-dimension-repository_nwopython/mypy
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id7053637
octolytics-dimension-repository_network_root_nwopython/mypy
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/mypy/issues/2306#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fissues%2F2306
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%2Fmypy%2Fissues%2F2306
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%2Fmypy
Reloadhttps://github.com/python/mypy/issues/2306
Reloadhttps://github.com/python/mypy/issues/2306
Reloadhttps://github.com/python/mypy/issues/2306
pythonhttps://github.com/python
mypyhttps://github.com/python/mypy
Codehttps://github.com/python/mypy
Issues2.7k (2.7k)https://github.com/python/mypy/issues
Pull requests547 (547)https://github.com/python/mypy/pulls
Actionshttps://github.com/python/mypy/actions
Projectshttps://github.com/python/mypy/projects
Wikihttps://github.com/python/mypy/wiki
Security and qualityhttps://github.com/python/mypy/security
Insightshttps://github.com/python/mypy/insights
https://github.com/python/mypy
New issuehttps://github.com/login?return_to=https://github.com/python/mypy/issues/2306
New issuehttps://github.com/login?return_to=https://github.com/python/mypy/issues/2306
Support functional API for Enum creationhttps://github.com/python/mypy/issues/2306#top
https://github.com/gvanrossum
featurehttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22feature%22
priority-0-highhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22priority-0-high%22
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Oct 24, 2016https://github.com/python/mypy/issues/2306#issue-184898794
functional APIhttps://docs.python.org/3/library/enum.html#functional-api
Nexthttps://github.com/python/mypy/issues/2306?timeline_page=1
gvanrossumhttps://github.com/gvanrossum
featurehttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22feature%22
on Oct 24, 2016https://github.com/python/mypy/issues/2306#event-834200535
gvanrossumhttps://github.com/gvanrossum
on Oct 24, 2016https://github.com/python/mypy/issues/2306#event-834200540
gvanrossumhttps://github.com/gvanrossum
priority-1-normalhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22priority-1-normal%22
on Jan 6, 2017https://github.com/python/mypy/issues/2306#event-914705577
https://github.com/homeworkprod
homeworkprodhttps://github.com/homeworkprod
on Jan 31, 2017https://github.com/python/mypy/issues/2306#issuecomment-276238212
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
on Jan 31, 2017https://github.com/python/mypy/issues/2306#issuecomment-276338369
@homeworkprodhttps://github.com/homeworkprod
@gvanrossumhttps://github.com/gvanrossum
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Jan 31, 2017https://github.com/python/mypy/issues/2306#issuecomment-276407119
gvanrossumhttps://github.com/gvanrossum
priority-0-highhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22priority-0-high%22
priority-1-normalhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22priority-1-normal%22
on Jan 31, 2017https://github.com/python/mypy/issues/2306#event-943307864
https://github.com/homeworkprod
homeworkprodhttps://github.com/homeworkprod
on Jan 31, 2017https://github.com/python/mypy/issues/2306#issuecomment-276510369
@JukkaLhttps://github.com/JukkaL
homeworkprodhttps://github.com/homeworkprod
on Feb 3, 2017https://github.com/python/mypy/issues/2306#event-947387435
Ignore `Enum` functional API calls on static type checkinghttps://github.com/byceps/byceps/commit/d8d7a6f8a2433834c9e867dbb8d4de4509f0b3cf
d8d7a6fhttps://github.com/byceps/byceps/commit/d8d7a6f8a2433834c9e867dbb8d4de4509f0b3cf
gvanrossumhttps://github.com/gvanrossum
on Feb 3, 2017https://github.com/python/mypy/issues/2306#event-948346805
Support functional API for Enum.https://github.com/python/mypy/commit/1bb21e487cd1c1ecbf9a41dc6866773788ae2d57
https://docs.github.com/articles/closing-issues-via-commit-messages
1bb21e4https://github.com/python/mypy/commit/1bb21e487cd1c1ecbf9a41dc6866773788ae2d57
Support functional API for Enum.https://github.com/python/mypy/commit/b77a613814069c0eaa94b22c91f0bce8cb4c3d0d
https://docs.github.com/articles/closing-issues-via-commit-messages
b77a613https://github.com/python/mypy/commit/b77a613814069c0eaa94b22c91f0bce8cb4c3d0d
Support functional API for Enum.https://github.com/python/mypy/commit/86accbb7e78c33f9aea22ca63e836f755ca2e167
https://docs.github.com/articles/closing-issues-via-commit-messages
86accbbhttps://github.com/python/mypy/commit/86accbb7e78c33f9aea22ca63e836f755ca2e167
gvanrossumhttps://github.com/gvanrossum
on Feb 3, 2017https://github.com/python/mypy/issues/2306#event-948446554
gvanrossumhttps://github.com/gvanrossum
on Feb 3, 2017https://github.com/python/mypy/issues/2306#event-948713719
Support functional API for Enum.https://github.com/python/mypy/commit/e907a3d32e1bcf72692625c7b1acdf983ab13e53
https://docs.github.com/articles/closing-issues-via-commit-messages
e907a3dhttps://github.com/python/mypy/commit/e907a3d32e1bcf72692625c7b1acdf983ab13e53
gvanrossumhttps://github.com/gvanrossum
on Feb 7, 2017https://github.com/python/mypy/issues/2306#event-951326063
Support functional API for Enum.https://github.com/python/mypy/commit/8ffe5f47007a88470953642f868aa95369558513
https://docs.github.com/articles/closing-issues-via-commit-messages
8ffe5f4https://github.com/python/mypy/commit/8ffe5f47007a88470953642f868aa95369558513
gvanrossumhttps://github.com/gvanrossum
on Mar 24, 2017https://github.com/python/mypy/issues/2306#event-1015139479
Support functional API for Enum.https://github.com/python/mypy/commit/4c731ab282f7c411af85e2186068879e10e86650
https://docs.github.com/articles/closing-issues-via-commit-messages
4c731abhttps://github.com/python/mypy/commit/4c731ab282f7c411af85e2186068879e10e86650
Support functional API for Enum.https://github.com/python/mypy/commit/e5c59376baf88d8ff88223688d3fa82c5d9a0165
https://docs.github.com/articles/closing-issues-via-commit-messages
e5c5937https://github.com/python/mypy/commit/e5c59376baf88d8ff88223688d3fa82c5d9a0165
Support functional API for Enum.https://github.com/python/mypy/commit/b5710d3217e802ab0f3a64c2f7051899997a8f4a
https://docs.github.com/articles/closing-issues-via-commit-messages
b5710d3https://github.com/python/mypy/commit/b5710d3217e802ab0f3a64c2f7051899997a8f4a
Support functional API for Enum.https://github.com/python/mypy/commit/62c6f6bd79646b13650aa088b2ed2cd4bb9ea08f
https://docs.github.com/articles/closing-issues-via-commit-messages
62c6f6bhttps://github.com/python/mypy/commit/62c6f6bd79646b13650aa088b2ed2cd4bb9ea08f
gvanrossumhttps://github.com/gvanrossum
on Mar 29, 2017https://github.com/python/mypy/issues/2306#event-1021274003
JukkaLhttps://github.com/JukkaL
completedhttps://github.com/python/mypy/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#2805https://github.com/python/mypy/pull/2805
on Mar 31, 2017https://github.com/python/mypy/issues/2306#event-1024062733
JukkaLhttps://github.com/JukkaL
on Mar 31, 2017https://github.com/python/mypy/issues/2306#event-1024062805
Support functional API for Enum. (#2805)https://github.com/python/mypy/commit/50f62159bf691474fb34f5e41ea1a699360f49c0
#2805https://github.com/python/mypy/pull/2805
https://docs.github.com/articles/closing-issues-via-commit-messages
50f6215https://github.com/python/mypy/commit/50f62159bf691474fb34f5e41ea1a699360f49c0
https://github.com/homeworkprod
homeworkprodhttps://github.com/homeworkprod
on May 25, 2017https://github.com/python/mypy/issues/2306#issuecomment-304009902
https://github.com/anentropic
anentropichttps://github.com/anentropic
on Nov 1, 2017https://github.com/python/mypy/issues/2306#issuecomment-341111694
https://github.com/anentropic
anentropichttps://github.com/anentropic
on Nov 1, 2017https://github.com/python/mypy/issues/2306#issuecomment-341112598
https://docs.python.org/3/library/enum.html#functional-apihttps://docs.python.org/3/library/enum.html#functional-api
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
on Nov 1, 2017https://github.com/python/mypy/issues/2306#issuecomment-341121158
@anentropichttps://github.com/anentropic
#4184https://github.com/python/mypy/issues/4184
https://github.com/rdbisme
rdbismehttps://github.com/rdbisme
on Feb 27, 2020https://github.com/python/mypy/issues/2306#issuecomment-592076903
#4865https://github.com/python/mypy/issues/4865
herehttps://docs.python.org/3/library/enum.html#functional-api
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
on Feb 28, 2020https://github.com/python/mypy/issues/2306#issuecomment-592561009
#4865 (comment)https://github.com/python/mypy/issues/4865#issuecomment-592560696
https://github.com/mvoitko
mvoitkohttps://github.com/mvoitko
on Oct 15, 2021https://github.com/python/mypy/issues/2306#issuecomment-944234784
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/mypy/issues/2306
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/mypy/issues/2306
gvanrossumhttps://github.com/gvanrossum
featurehttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22feature%22
priority-0-highhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22priority-0-high%22
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.