summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dataclasses.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Exhaustively test dataclass hashing when no hash= value is provided. This is ↵Eric V. Smith2018-02-231-0/+73
| | | | in anticipation of changing how non-default hashing is handled. (#5834)
* Fix trivial typo in test_dataclasses.py. (GH-5398)Eric V. Smith2018-01-291-1/+1
|
* bpo-32513: Make it easier to override dunders in dataclasses. (GH-5366)Eric V. Smith2018-01-281-212/+452
| | | Class authors no longer need to specify repr=False if they want to provide a custom __repr__ for dataclasses. The same thing applies for the other dunder methods that the dataclass decorator adds. If dataclass finds that a dunder methods is defined in the class, it will not overwrite it.
* bpo-32279: Add additional params to make_dataclass(), pass through to ↵Eric V. Smith2018-01-061-0/+17
| | | | dataclass(). (gh-5117)
* bpo-32278: Allow dataclasses.make_dataclass() to omit type information. ↵Eric V. Smith2018-01-061-0/+14
| | | | (gh-5115)
* bpo-32499: Add dataclasses.is_dataclass(obj), which returns True if obj is a ↵Eric V. Smith2018-01-061-16/+21
| | | | dataclass or an instance of one. (#5113)
* bpo-32427: Expose dataclasses.MISSING object. (#5045)Eric V. Smith2017-12-291-3/+49
|
* bpo-32259: Make a TypeError message when unpack non-iterable more specific. ↵Serhiy Storchaka2017-12-261-1/+1
| | | | (#4903)
* bpo-32297: Few misspellings found in Python source code comments. (#4803)Mike2017-12-141-1/+1
| | | | | | | | * Fix multiple typos in code comments * Add spacing in comments (test_logging.py, test_math.py) * Fix spaces at the beginning of comments in test_logging.py
* Use raw strings for regex to avoid invalid escape sequences. (GH-4741)Eric V. Smith2017-12-061-2/+2
|
* bpo-32214: Implement PEP 557: Data Classes (#4704)Eric V. Smith2017-12-041-0/+2076