| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:90fcc6d1-8395-e830-22d7-4ba729ca5722 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8EC2:3135A1:39F11:5120D:6B007E04 |
| html-safe-nonce | 875ebee5179faf154afa936b4f624acb5a20f65c1eee963ab0e014c8ce0a256f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUMyOjMxMzVBMTozOUYxMTo1MTIwRDo2QjAwN0UwNCIsInZpc2l0b3JfaWQiOiI2Mjk3ODA4NTg5MTM4NDYwMTY1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 132c937443083a7b6ab2ccc5357ca0904d7939d70aa0b422e466a8bae422f7ca |
| hovercard-subject-tag | pull_request:1286520147 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/102933/files |
| twitter:image | https://avatars.githubusercontent.com/u/66076021?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/66076021?s=400&v=4 |
| og:image:alt | Add dataclasses.DataclassLike, an abstract base class for dataclasses. Mainly useful for type-hinting. See the issue for a more complete rationale for why this class would be useful.
Issue: gh-10... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 82c186f13e104004ab7bdb779f3195e59dd38bfde531aaa74b76470fc2462b83 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d1bc2aa1939001689f5ce935982c10a6138f745c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/102933/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F102933%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F102933%2Ffiles |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/102933/files |
| Reload | https://github.com/python/cpython/pull/102933/files |
| Reload | https://github.com/python/cpython/pull/102933/files |
| python | https://github.com/python |
| cpython | https://github.com/python/cpython |
| Code | https://github.com/python/cpython |
| Issues5k+ (5k+) | https://github.com/python/cpython/issues |
| Pull requests2.4k (2.4k) | https://github.com/python/cpython/pulls |
| Actions | https://github.com/python/cpython/actions |
| Projects | https://github.com/python/cpython/projects |
| Security and quality | https://github.com/python/cpython/security |
| Insights | https://github.com/python/cpython/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| AlexWaygood | https://github.com/AlexWaygood |
| python:main | https://github.com/python/cpython/tree/main |
| AlexWaygood:dataclass-protocol | https://github.com/AlexWaygood/cpython/tree/dataclass-protocol |
|
Conversation
16
| https://github.com/python/cpython/pull/102933 |
|
Commits
11
| https://github.com/python/cpython/pull/102933/commits |
|
Checks
0
| https://github.com/python/cpython/pull/102933/checks |
|
Files changed
| https://github.com/python/cpython/pull/102933/files |
| Please reload this page | https://github.com/python/cpython/pull/102933/files |
|
gh-102699: Add dataclasses.DataclassLike
| https://github.com/python/cpython/pull/102933/files#top |
|
Show all changes
11 commits
| https://github.com/python/cpython/pull/102933/files |
|
f2c96a4
gh-102699: Add `dataclasses.DataclassLike`
AlexWaygood Mar 22, 2023
| https://github.com/python/cpython/pull/102933/commits/f2c96a468c314b4b02d46dfc1e348b642ec8806f |
|
2961b83
Improve coverage as per review
AlexWaygood Mar 23, 2023
| https://github.com/python/cpython/pull/102933/commits/2961b837da536dea49c16c5022c51c77cee80e3e |
|
adad189
Make it an actual dataclass rather than faking it
AlexWaygood Mar 23, 2023
| https://github.com/python/cpython/pull/102933/commits/adad18948d36ad90fe39d639e57b32f39fb576f5 |
|
e5535a9
use `is_dataclass` over `hasattr`
AlexWaygood Mar 23, 2023
| https://github.com/python/cpython/pull/102933/commits/e5535a92e3a5868815cd5e781a624bb4ad252178 |
|
407d0ee
Simplify
AlexWaygood Mar 23, 2023
| https://github.com/python/cpython/pull/102933/commits/407d0ee00ec39f933c97c7658642df51263ae395 |
|
6c319e3
Merge branch 'dataclass-protocol' of https://github.com/AlexWaygood/c…
AlexWaygood Mar 23, 2023
| https://github.com/python/cpython/pull/102933/commits/6c319e32fd4bb9a266e24241ba7e381a99e79d07 |
|
3a2690f
Merge branch 'main' into dataclass-protocol
AlexWaygood Mar 23, 2023
| https://github.com/python/cpython/pull/102933/commits/3a2690f9e038921faa7696128c825af86a575a90 |
|
c943628
Simplify more
AlexWaygood Mar 23, 2023
| https://github.com/python/cpython/pull/102933/commits/c94362841270cbe236d700deaf410f0705d2c899 |
|
39ced16
Merge branch 'main' into dataclass-protocol
AlexWaygood Mar 30, 2023
| https://github.com/python/cpython/pull/102933/commits/39ced16b476377ed438eb10f7831e70c55647c9d |
|
721253e
Merge branch 'main' into dataclass-protocol
AlexWaygood Apr 25, 2023
| https://github.com/python/cpython/pull/102933/commits/721253edf153f38e105fdc36d1afacd2d15acd73 |
|
6c8a034
Merge branch 'main' into dataclass-protocol
AlexWaygood Apr 25, 2023
| https://github.com/python/cpython/pull/102933/commits/6c8a0347340d3a29e18e8813062bef7182fa89e3 |
|
Clear filters
| https://github.com/python/cpython/pull/102933/files |
| Please reload this page | https://github.com/python/cpython/pull/102933/files |
| Please reload this page | https://github.com/python/cpython/pull/102933/files |
|
dataclasses.rst
| https://github.com/python/cpython/pull/102933/files#diff-ea5d851e2fa5c30333b552b42d5f4c48ffd4510011c5b2e8a082d04b2ca25e53 |
|
dataclasses.py
| https://github.com/python/cpython/pull/102933/files#diff-44ce2dc1c4922b2f5cf7631d8f86cc569a4c25eb003aaecdc2bc22eb9163d5f5 |
|
test_dataclasses.py
| https://github.com/python/cpython/pull/102933/files#diff-f0436842533448f8f02a19081d7c9cc8372b6685756caf32c83dfecebbee68e7 |
|
2023-03-22-21-05-34.gh-issue-102699.48uE4z.rst
| https://github.com/python/cpython/pull/102933/files#diff-183e0288b42dc5ee0f28658618fe8bc1078088c27134ce9d11e8dc2104f3d434 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L421 |
| Doc/library/dataclasses.rst | https://github.com/python/cpython/pull/102933/files#diff-ea5d851e2fa5c30333b552b42d5f4c48ffd4510011c5b2e8a082d04b2ca25e53 |
|
View file
| https://github.com/AlexWaygood/cpython/blob/6c8a0347340d3a29e18e8813062bef7182fa89e3/Doc/library/dataclasses.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/102933/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/102933/files#diff-ea5d851e2fa5c30333b552b42d5f4c48ffd4510011c5b2e8a082d04b2ca25e53 |
|
| https://github.com/python/cpython/pull/102933/files#diff-ea5d851e2fa5c30333b552b42d5f4c48ffd4510011c5b2e8a082d04b2ca25e53 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L422 |
| Lib/dataclasses.py | https://github.com/python/cpython/pull/102933/files#diff-44ce2dc1c4922b2f5cf7631d8f86cc569a4c25eb003aaecdc2bc22eb9163d5f5 |
|
View file
| https://github.com/AlexWaygood/cpython/blob/6c8a0347340d3a29e18e8813062bef7182fa89e3/Lib/dataclasses.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/102933/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/102933/files#diff-44ce2dc1c4922b2f5cf7631d8f86cc569a4c25eb003aaecdc2bc22eb9163d5f5 |
|
| https://github.com/python/cpython/pull/102933/files#diff-44ce2dc1c4922b2f5cf7631d8f86cc569a4c25eb003aaecdc2bc22eb9163d5f5 |
|
| https://github.com/python/cpython/pull/102933/files#diff-44ce2dc1c4922b2f5cf7631d8f86cc569a4c25eb003aaecdc2bc22eb9163d5f5 |
| Please reload this page | https://github.com/python/cpython/pull/102933/files |
|
| https://github.com/python/cpython/pull/102933/files#diff-44ce2dc1c4922b2f5cf7631d8f86cc569a4c25eb003aaecdc2bc22eb9163d5f5 |
| Lib/test/test_dataclasses.py | https://github.com/python/cpython/pull/102933/files#diff-f0436842533448f8f02a19081d7c9cc8372b6685756caf32c83dfecebbee68e7 |
|
View file
| https://github.com/AlexWaygood/cpython/blob/6c8a0347340d3a29e18e8813062bef7182fa89e3/Lib/test/test_dataclasses.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/102933/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/102933/files#diff-f0436842533448f8f02a19081d7c9cc8372b6685756caf32c83dfecebbee68e7 |
|
| https://github.com/python/cpython/pull/102933/files#diff-f0436842533448f8f02a19081d7c9cc8372b6685756caf32c83dfecebbee68e7 |
| Misc/NEWS.d/next/Library/2023-03-22-21-05-34.gh-issue-102699.48uE4z.rst | https://github.com/python/cpython/pull/102933/files#diff-183e0288b42dc5ee0f28658618fe8bc1078088c27134ce9d11e8dc2104f3d434 |
|
View file
| https://github.com/AlexWaygood/cpython/blob/6c8a0347340d3a29e18e8813062bef7182fa89e3/Misc/NEWS.d/next/Library/2023-03-22-21-05-34.gh-issue-102699.48uE4z.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/102933/{{ revealButtonHref }} |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |