All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Fix issues with caching internal function calls
1.8.1 - 2023-05-12
- Fix value creation for a field with a default factory
1.8.0 - 2023-01-26
- Performance improvements (multiple small changes)
- Introduce cache functionality
- Fix set's casting
- Use
localns
forget_type_hints
instead ofglobalns
1.7.0 - 2022-12-22
- Add explicit
__all__
configuration - Add Python 3.10 and 3.11 support
- Support PEP 604 unions through
types.UnionType
- Do not suppress
KeyError
in a type hook - Handle tuple as a
Sequence
- Handle a default value for a non-init field within a frozen dataclass
- Run type hooks / cast for
InitVar
fields - Fix optional unions
1.6.0 - 2020-11-30
- Support
Type
fields
- Handle generic collections with implicit
Any
inner types in Python 3.9 - Fix
InitVar
with inner data classes - Improve support for fixed length and undefined length tuples
1.5.1 - 2020-07-03
- Python 3.9 support
1.5.0 - 2020-05-02
- Add
strict_unions_match
config parameter - Support
Tuple
- The order of run type hooks in
Union
1.4.0 - 2020-04-10
- Support
InitVar
- Fix
Union
type hooks
1.3.0 - 2020-03-14
- Support
Literal
- Support PEP 561
1.2.1 - 2020-03-02
- Fix problem with a "numeric tower" and optional/new type
1.2.0 - 2020-01-05
- Support base classes in
cast
- Support collections in
cast
- Handle "numeric tower" as described in PEP 484
1.1.0 - 2019-11-27
- Python 3.8 support
cast
config parameter
- Validate type for generic collection fields