v0.8.0
Breaking changes:
csfieldshould only be used for constructs that cannot build fromNone. Every other construct should use the newcsfield_noinit,csfield_constorcsfield_default.- Removed wildcard imports, so it may be necessary to change some import statements in your code when you use non-public APIs.
- Bumped minimum required Python version to 3.10 (previously: 3.9 which has reached end-of-life).
- Removed
version.py, useimportlib.metadatainstead to get the version number.
New features:
- Added
csfield_constto create dataclass fields that are excluded from constructor and have a constant value. - Added
csfield_defaultto create dataclass fields that have a default value. - Added
csfield_noinitto create dataclass fields that are excluded from constructor.
Changes:
- Optimize type stubs for
Computed,DefaultandRebuildin conjunction withty. - Optimize type stubs for
Checksum, to represent that it can build fromNone. - Use PEP604 union syntax "X | Y" instead of "Union[X, Y]" and "X | None" instead of "Optional[X]" in type hints.
Organizational changes:
- Use
uvas a project management tool andpoeas a task runner.