Skip to content

v1.7.0

Compare
Choose a tag to compare
@konradhalas konradhalas released this 22 Dec 11:57
· 16 commits to master since this release

Added

  • Add explicit __all__ configuration
  • Add Python 3.10 and 3.11 support
  • Support PEP 604 unions through types.UnionType

Fixed

  • 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