summaryrefslogtreecommitdiff
path: root/Lib/dataclasses.py
AgeCommit message (Expand)AuthorLines
2023-03-23[3.10] gh-102947: Improve traceback when calling `fields()` on a non-dataclas...Alex Waygood-1/+1
2023-01-05[3.10] gh-90104: avoid RecursionError on recursive dataclass field repr (gh-1...Carl Meyer-21/+21
2022-10-31[3.10] gh-96151: Use a private name for passing builtins to dataclass. This n...Miss Islington (bot)-5/+4
2021-12-05bpo-45663: Fix is_dataclass() for dataclasses which are subclasses of types.G...Miss Islington (bot)-1/+1
2021-12-05bpo-45662: Fix the repr of InitVar with a type alias to the built-in class (G...Miss Islington (bot)-1/+1
2021-11-22bpo-44649: Fix dataclasses(slots=True) with a field with a default, but init=...Miss Islington (bot)-6/+13
2021-11-20Added kw_only parameter to make_dataclasses. (GH-29679)Miss Islington (bot)-2/+2
2021-10-09Fix dataclassses spelling (GH-28837) (GH-28841)Miss Islington (bot)-1/+1
2021-05-28Fix dataclass comment typo _eq__ -> __eq__ (GH-26433) (GH-26436)Miss Islington (bot)-1/+1
2021-05-03bpo-44015: dataclasses should allow KW_ONLY to be specified only once per cla...Eric V. Smith-0/+5
2021-05-01If using a frozen class with slots, add __getstate__ and __setstate__ to set ...Eric V. Smith-2/+21
2021-04-30bpo-42269: Add slots parameter to dataclass decorator (GH-24171)Yurii Karabas-6/+39
2021-04-25Add keyword-only fields to dataclasses. (GH=25608)Eric V. Smith-32/+101
2021-04-21bpo-38605: Revert making 'from __future__ import annotations' the default (GH...Pablo Galindo-10/+3
2021-04-17Fix typo in a dataclasses comment. (GH-25454)Eric V. Smith-1/+1
2021-04-12Remove an unnecessary copy of the 'namespace' parameter to make_dataclass(). ...Eric V. Smith-8/+13
2021-04-10bpo-43764: Add match_args=False parameter to dataclass decorator and to make_...Eric V. Smith-14/+24
2021-04-08bpo-43764: Fix `__match_args__` generation logic for dataclasses (GH-25284)Brandt Bucher-1/+1
2021-04-05bpo-43176: Fix processing of empty dataclasses (GH-24484)Iurii Kemaev-1/+1
2021-04-05bpo-36470: Allow dataclasses.replace() to handle InitVars with default values...Zackery Spytz-1/+1
2021-02-26bpo-42128: Structural Pattern Matching (PEP 634) (GH-22917)Brandt Bucher-0/+12
2020-10-21bpo-41747: Ensure all dataclass methods uses their parents' qualname (GH-22155)Batuhan Taskaya-2/+9
2020-10-06bpo-38605: Make 'from __future__ import annotations' the default (GH-20434)Batuhan Taskaya-3/+10
2020-10-06bpo-41905: Add abc.update_abstractmethods() (GH-22485)Ben Avrahami-0/+3
2020-06-24Fix typo in dataclasses module (GH-21109)Jürgen Gmach-1/+1
2020-04-14bpo-39481: PEP 585 for dataclasses, mailbox, contextvars (GH-19425)Ethan Smith-0/+3
2019-12-09bpo-34776: Fix dataclasses to support __future__ "annotations" mode (#9518)Yury Selivanov-34/+53
2019-10-13bpo-38431: Fix __repr__ method of InitVar to work with typing objects. (GH-16...Samuel Colvin-1/+6
2019-09-22bpo-38209: Simplify dataclasses.InitVar by using __class_getitem__(). (GH-16255)Serhiy Storchaka-5/+4
2019-08-20bpo-37868: Improve is_dataclass for instances. (GH-15325)Eric V. Smith-2/+3
2019-07-21Fix typos in docs, comments and test assert messages (#14872)Min ho Kim-1/+1
2019-06-26bpo-37163: Make the obj argument of dataclasses.replace() a positional-only. ...Serhiy Storchaka-1/+1
2019-06-02bpo-33569 Preserve type information with dataclasses.InitVar (GH-8927)Augusto Hack-3/+10
2019-06-01bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)Serhiy Storchaka-6/+3
2019-02-12 bpo-35960: Fix dataclasses.field throwing away empty metadata. (GH-11815)Christopher Hunt-1/+1
2018-10-19bpo-33947: dataclasses no longer can raise RecursionError in repr (GF9916)Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి)-6/+31
2018-09-14bpo-34363: dataclasses.asdict() and .astuple() now handle fields which are na...Eric V. Smith-2/+38
2018-08-12bpo-34213: Allow dataclasses to work with a field named 'object'. (GH-8452)Vadim Pushtaev-1/+7
2018-07-05Fix typo in dataclasses documentation (GH-8102)Artjom-1/+1
2018-06-23bpo-33805: Improve error message of dataclasses.replace() (GH-7580)Dong-hee Na-0/+3
2018-06-07bpo-33796: Ignore ClassVar for dataclasses.replace(). (GH-7488)Eric V. Smith-1/+5
2018-05-16bpo-33536: Validate make_dataclass() field names. (GH-6906)Eric V. Smith-0/+15
2018-05-16bpo-33534: Remove unneeded test. (GH-6897)Eric V. Smith-6/+5
2018-05-16Reflow dataclasses comments (GH-6893)Eric V. Smith-170/+176
2018-05-15bpo-33453: Handle string type annotations in dataclasses. (GH-6768)Eric V. Smith-18/+116
2018-05-15bpo-33517: dataclasses: Add the field type to Field repr (GH-6858)Eric V. Smith-4/+10
2018-05-14bpo-33502: dataclass._Dataclassparams repr: use repr of each member. (GH-6812)Eric V. Smith-6/+6
2018-05-14bpo-33494: Change dataclasses.Fields repr to use the repr of each of its memb...Eric V. Smith-8/+8
2018-03-31Allow dynamic creation of generic dataclasses (GH-6319)Ivan Levkivskyi-1/+3
2018-03-29bpo-33175: dataclasses should look up __set_name__ on class, not instance (GH...Eric V. Smith-2/+2