Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fixed incorrect default value for dataclass unsafe_hash. (GH-5949) | Eric V. Smith | 2018-03-01 | 1 | -2/+2 | |
| | ||||||
* | bpo-32960: For dataclasses, disallow inheriting frozen from non-frozen ↵ | Eric V. Smith | 2018-02-27 | 1 | -6/+13 | |
| | | | | | classes and vice-versa, (GH-5919) This restriction will be relaxed at a future date. | |||||
* | bpo-32929: Dataclasses: Change the tri-state hash parameter to the boolean ↵ | Eric V. Smith | 2018-02-26 | 1 | -79/+105 | |
| | | | | | unsafe_hash. (#5891) unsafe_hash=False is now the default. It is the same behavior as the old hash=None parameter. unsafe_hash=True will try to add __hash__. If it already exists, TypeError is raised. | |||||
* | bpo-32513: Make it easier to override dunders in dataclasses. (GH-5366) | Eric V. Smith | 2018-01-28 | 1 | -82/+224 | |
| | | | 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-32226: PEP 560: improve typing module (#4906) | Ivan Levkivskyi | 2018-01-20 | 1 | -1/+2 | |
| | | | | This PR re-designs the internal typing API using the new PEP 560 features. However, there are only few minor changes in the public API. | |||||
* | Fix obvious typos in docstrings (#5151) | Raymond Hettinger | 2018-01-11 | 1 | -6/+7 | |
| | ||||||
* | bpo-32506: Change dataclasses from OrderedDict to plain dict. (gh-5131) | Eric V. Smith | 2018-01-07 | 1 | -8/+8 | |
| | ||||||
* | Fix dataclasses docstring typo. (gh-5118) | Eric V. Smith | 2018-01-07 | 1 | -2/+2 | |
| | ||||||
* | bpo-32279: Add additional params to make_dataclass(), pass through to ↵ | Eric V. Smith | 2018-01-06 | 1 | -3/+7 | |
| | | | | dataclass(). (gh-5117) | |||||
* | bpo-32278: Allow dataclasses.make_dataclass() to omit type information. ↵ | Eric V. Smith | 2018-01-06 | 1 | -6/+14 | |
| | | | | (gh-5115) | |||||
* | bpo-32499: Add dataclasses.is_dataclass(obj), which returns True if obj is a ↵ | Eric V. Smith | 2018-01-06 | 1 | -6/+13 | |
| | | | | dataclass or an instance of one. (#5113) | |||||
* | bpo-32427: Expose dataclasses.MISSING object. (#5045) | Eric V. Smith | 2017-12-29 | 1 | -20/+21 | |
| | ||||||
* | bpo-32214: Implement PEP 557: Data Classes (#4704) | Eric V. Smith | 2017-12-04 | 1 | -0/+776 | |