Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
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 }}
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
37k
Star
77.4k
Code
Issues
5k+
Pull requests
2.7k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
cpython
Lib
dataclasses.py
on
3.9
User selector
All users
Datepicker
All time
Commit history
Commits on Dec 10, 2021
[3.9] bpo-45662: Fix the repr of InitVar with a type alias to the built-in class (GH-29291) (GH-29924)
Show description for fb8aad1
miss-islington
and
serhiy-storchaka
authored
fb8aad1
View commit details
Copy full SHA for fb8aad1
View code at this point
Browse repository at this point
Commits on Dec 5, 2021
bpo-45663: Fix is_dataclass() for dataclasses which are subclasses of types.GenericAlias (GH-29294)
Show description for 1905071
miss-islington
and
serhiy-storchaka
authored
1905071
View commit details
Copy full SHA for 1905071
View code at this point
Browse repository at this point
Commits on May 29, 2021
Fix dataclass comment typo _eq__ -> __eq__ (GH-26433) (GH-26437)
Show description for d5b657b
miss-islington
and
SeanGrady
authored
d5b657b
View commit details
Copy full SHA for d5b657b
View code at this point
Browse repository at this point
Commits on Apr 17, 2021
Fix typo in a dataclasses comment. (GH-25454)
Show description for 0121f67
miss-islington
and
ericvsmith
authored
0121f67
View commit details
Copy full SHA for 0121f67
View code at this point
Browse repository at this point
Commits on Apr 6, 2021
bpo-43176: Fix processing of empty dataclasses (GH-24484) (GH-25205)
Show description for 8a34a07
miss-islington
and
hbq1
authored
8a34a07
View commit details
Copy full SHA for 8a34a07
View code at this point
Browse repository at this point
Commits on Apr 5, 2021
bpo-36470: Allow dataclasses.replace() to handle InitVars with default values (GH-20867) (GH-25200)
Show description for 013c30e
miss-islington
and
ZackerySpytz
authored
013c30e
View commit details
Copy full SHA for 013c30e
View code at this point
Browse repository at this point
Commits on Jun 24, 2020
Fix typo in dataclasses module (GH-21109) (#21110)
Show description for 4b80cfb
miss-islington
and
jugmac00
authored
4b80cfb
View commit details
Copy full SHA for 4b80cfb
View code at this point
Browse repository at this point
Commits on Apr 14, 2020
bpo-39481: PEP 585 for dataclasses, mailbox, contextvars (GH-19425)
emmatyping
authored
d01628e
View commit details
Copy full SHA for d01628e
View code at this point
Browse repository at this point
Commits on Dec 9, 2019
bpo-34776: Fix dataclasses to support __future__ "annotations" mode (#9518)
Yury Selivanov
authored and
ambv
committed
d219cc4
View commit details
Copy full SHA for d219cc4
View code at this point
Browse repository at this point
Commits on Oct 13, 2019
bpo-38431: Fix __repr__ method of InitVar to work with typing objects. (GH-16702)
samuelcolvin
authored and
serhiy-storchaka
committed
793cb85
View commit details
Copy full SHA for 793cb85
View code at this point
Browse repository at this point
Commits on Sep 22, 2019
bpo-38209: Simplify dataclasses.InitVar by using __class_getitem__(). (GH-16255)
serhiy-storchaka
authored
b4d0b39
View commit details
Copy full SHA for b4d0b39
View code at this point
Browse repository at this point
Commits on Aug 20, 2019
bpo-37868: Improve is_dataclass for instances. (GH-15325)
ericvsmith
authored
b0f4dab
View commit details
Copy full SHA for b0f4dab
View code at this point
Browse repository at this point
Commits on Jul 21, 2019
Fix typos in docs, comments and test assert messages (#14872)
minho42
authored and
terryjreedy
committed
96e12d5
View commit details
Copy full SHA for 96e12d5
View code at this point
Browse repository at this point
Commits on Jun 26, 2019
bpo-37163: Make the obj argument of dataclasses.replace() a positional-only. (GH-14390)
serhiy-storchaka
authored
2d88e63
View commit details
Copy full SHA for 2d88e63
View code at this point
Browse repository at this point
Commits on Jun 3, 2019
bpo-33569 Preserve type information with dataclasses.InitVar (GH-8927)
hackaugusto
authored and
ericvsmith
committed
01ee12b
View commit details
Copy full SHA for 01ee12b
View code at this point
Browse repository at this point
Commits on Jun 1, 2019
bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)
serhiy-storchaka
authored
2085bd0
View commit details
Copy full SHA for 2085bd0
View code at this point
Browse repository at this point
Commits on Feb 12, 2019
bpo-35960: Fix dataclasses.field throwing away empty metadata. (GH-11815)
chrahunt
authored and
ericvsmith
committed
b01786c
View commit details
Copy full SHA for b01786c
View code at this point
Browse repository at this point
Commits on Oct 19, 2018
bpo-33947: dataclasses no longer can raise RecursionError in repr (GF9916)
Show description for dd13c88
srinivasreddy
authored and
ericvsmith
committed
dd13c88
View commit details
Copy full SHA for dd13c88
View code at this point
Browse repository at this point
Commits on Sep 14, 2018
bpo-34363: dataclasses.asdict() and .astuple() now handle fields which are namedtuples. (GH-9151)
ericvsmith
authored
9b9d97d
View commit details
Copy full SHA for 9b9d97d
View code at this point
Browse repository at this point
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
Previous
Next
You can’t perform that action at this time.