Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
pythoncapi
cpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Lib
dataclasses.py
on
pythoncapi
User selector
All users
Datepicker
All time
Commit history
Commits on Aug 12, 2018
bpo-34213: Allow dataclasses to work with a field named 'object'. (GH-8452)
VadimPushtaev
authored and
ericvsmith
committed
4d12e4d
View commit details
Copy full SHA for 4d12e4d
View code at this point
Browse repository at this point
Commits on Jul 5, 2018
Fix typo in dataclasses documentation (GH-8102)
tjomk
authored and
ericvsmith
committed
e55ca3f
View commit details
Copy full SHA for e55ca3f
View code at this point
Browse repository at this point
Commits on Jun 23, 2018
bpo-33805: Improve error message of dataclasses.replace() (GH-7580)
corona10
authored and
ericvsmith
committed
3d70f7a
View commit details
Copy full SHA for 3d70f7a
View code at this point
Browse repository at this point
Commits on Jun 7, 2018
bpo-33796: Ignore ClassVar for dataclasses.replace(). (GH-7488)
ericvsmith
authored
e7adf2b
View commit details
Copy full SHA for e7adf2b
View code at this point
Browse repository at this point
Commits on May 16, 2018
bpo-33536: Validate make_dataclass() field names. (GH-6906)
ericvsmith
authored
4e81296
View commit details
Copy full SHA for 4e81296
View code at this point
Browse repository at this point
bpo-33534: Remove unneeded test. (GH-6897)
Show description for 9285835
ericvsmith
authored
9285835
View commit details
Copy full SHA for 9285835
View code at this point
Browse repository at this point
Reflow dataclasses comments (GH-6893)
Show description for f8e7549
ericvsmith
authored
f8e7549
View commit details
Copy full SHA for f8e7549
View code at this point
Browse repository at this point
bpo-33453: Handle string type annotations in dataclasses. (GH-6768)
ericvsmith
authored
2a7bacb
View commit details
Copy full SHA for 2a7bacb
View code at this point
Browse repository at this point
Commits on May 15, 2018
bpo-33517: dataclasses: Add the field type to Field repr (GH-6858)
ericvsmith
authored
01abc6e
View commit details
Copy full SHA for 01abc6e
View code at this point
Browse repository at this point
Commits on May 14, 2018
bpo-33502: dataclass._Dataclassparams repr: use repr of each member. (GH-6812)
ericvsmith
authored
3059042
View commit details
Copy full SHA for 3059042
View code at this point
Browse repository at this point
bpo-33494: Change dataclasses.Fields repr to use the repr of each of its members (GH-6798)
ericvsmith
authored
2473eea
View commit details
Copy full SHA for 2473eea
View code at this point
Browse repository at this point
Commits on Mar 31, 2018
Allow dynamic creation of generic dataclasses (GH-6319)
ilevkivskyi
authored
5a7092d
View commit details
Copy full SHA for 5a7092d
View code at this point
Browse repository at this point
Commits on Mar 29, 2018
bpo-33175: dataclasses should look up __set_name__ on class, not instance (GH-6305)
ericvsmith
authored
5219952
View commit details
Copy full SHA for 5219952
View code at this point
Browse repository at this point
Commits on Mar 26, 2018
bpo-33141: Have dataclasses.Field pass through __set_name__ to any default argument. (GH-6260)
Show description for de7a2f0
ericvsmith
authored
de7a2f0
View commit details
Copy full SHA for de7a2f0
View code at this point
Browse repository at this point
Commits on Mar 25, 2018
bpo-33134: dataclasses: use function dispatch table for hash, instead of a string lookup which then is tested with if tests. (GH-6222)
Show description for 01d618c
ericvsmith
authored
01d618c
View commit details
Copy full SHA for 01d618c
View code at this point
Browse repository at this point
Commits on Mar 24, 2018
Trivial dataclass cleanups: (GH-6218)
Show description for f96ddad
ericvsmith
authored
f96ddad
View commit details
Copy full SHA for f96ddad
View code at this point
Browse repository at this point
Commits on Mar 22, 2018
bpo-32505: dataclasses: raise TypeError if a member variable is of type Field, but doesn't have a type annotation. (GH-6192)
Show description for 56970b8
ericvsmith
authored
56970b8
View commit details
Copy full SHA for 56970b8
View code at this point
Browse repository at this point
Commits on Mar 21, 2018
Add 'Field' to dataclasses.__all__. (GH-6182)
Show description for 8e4560a
ericvsmith
authored
8e4560a
View commit details
Copy full SHA for 8e4560a
View code at this point
Browse repository at this point
bpo-32896: Fix error when subclassing a dataclass with a field that uses a default_factory (GH-6170)
Show description for 8f6eccd
ericvsmith
authored
8f6eccd
View commit details
Copy full SHA for 8f6eccd
View code at this point
Browse repository at this point
Commits on Mar 20, 2018
bpo-33100: Dataclasses now handles __slots__ and default values correctly. (GH-6152)
Show description for 7389fd9
ericvsmith
authored
7389fd9
View commit details
Copy full SHA for 7389fd9
View code at this point
Browse repository at this point
Commits on Mar 19, 2018
bpo-32953: Dataclasses: frozen should not be inherited for non-dataclass derived classes (#6147)
Show description for f199bc6
ericvsmith
authored
f199bc6
View commit details
Copy full SHA for f199bc6
View code at this point
Browse repository at this point
Commits on Mar 1, 2018
Fixed incorrect default value for dataclass unsafe_hash. (GH-5949)
ericvsmith
authored
5da8cfb
View commit details
Copy full SHA for 5da8cfb
View code at this point
Browse repository at this point
Commits on Feb 27, 2018
bpo-32960: For dataclasses, disallow inheriting frozen from non-frozen classes and vice-versa, (GH-5919)
Show description for 2fa6b9e
ericvsmith
authored
2fa6b9e
View commit details
Copy full SHA for 2fa6b9e
View code at this point
Browse repository at this point
Commits on Feb 26, 2018
bpo-32929: Dataclasses: Change the tri-state hash parameter to the boolean unsafe_hash. (#5891)
Show description for dbf9cff
ericvsmith
authored
dbf9cff
View commit details
Copy full SHA for dbf9cff
View code at this point
Browse repository at this point
Commits on Jan 28, 2018
bpo-32513: Make it easier to override dunders in dataclasses. (GH-5366)
Show description for ea8fc52
ericvsmith
authored
ea8fc52
View commit details
Copy full SHA for ea8fc52
View code at this point
Browse repository at this point
Commits on Jan 20, 2018
bpo-32226: PEP 560: improve typing module (#4906)
Show description for d911e40
ilevkivskyi
authored
d911e40
View commit details
Copy full SHA for d911e40
View code at this point
Browse repository at this point
Commits on Jan 11, 2018
Fix obvious typos in docstrings (#5151)
rhettinger
authored
d55209d
View commit details
Copy full SHA for d55209d
View code at this point
Browse repository at this point
Commits on Jan 7, 2018
bpo-32506: Change dataclasses from OrderedDict to plain dict. (gh-5131)
ericvsmith
authored
d138892
View commit details
Copy full SHA for d138892
View code at this point
Browse repository at this point
Fix dataclasses docstring typo. (gh-5118)
ericvsmith
authored
d327ae6
View commit details
Copy full SHA for d327ae6
View code at this point
Browse repository at this point
Commits on Jan 6, 2018
bpo-32279: Add additional params to make_dataclass(), pass through to dataclass(). (gh-5117)
ericvsmith
authored
d80b443
View commit details
Copy full SHA for d80b443
View code at this point
Browse repository at this point
bpo-32278: Allow dataclasses.make_dataclass() to omit type information. (gh-5115)
ericvsmith
authored
ed7d429
View commit details
Copy full SHA for ed7d429
View code at this point
Browse repository at this point
bpo-32499: Add dataclasses.is_dataclass(obj), which returns True if obj is a dataclass or an instance of one. (#5113)
ericvsmith
authored
e7ba013
View commit details
Copy full SHA for e7ba013
View code at this point
Browse repository at this point
Commits on Dec 29, 2017
bpo-32427: Expose dataclasses.MISSING object. (#5045)
ericvsmith
authored
03220fd
View commit details
Copy full SHA for 03220fd
View code at this point
Browse repository at this point
Commits on Dec 4, 2017
bpo-32214: Implement PEP 557: Data Classes (#4704)
ericvsmith
authored
f0db54a
View commit details
Copy full SHA for f0db54a
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.