Releases: FelixTheC/strongtyping
Releases · FelixTheC/strongtyping
v3.13.1
Enhancements
- Updated the CI workflow to use Python 3.13 and modernized the build process by replacing deprecated setup.py commands with build and twine.
- Adjusted pyproject.toml to align with new packaging configurations.
- Enabled Python 3.13 in GitHub Actions workflows and tests, adding related compatibility checks where necessary.
- Upgraded actions/checkout and adjusted test markers for feature-specific availability in 3.13.
- Replaced all occurrences of "TypeMisMatch" with the correct term "TypeMismatch" across documentation files, improving consistency and correctness in the error type mentioned throughout the project.
New Features
- Added support for Python version 3.13 as reflected in the README updates. Now users are aware of the extended compatibility with newer Python versions.
Refactoring
- Relocated all test files from strongtyping/tests to a root-level tests directory for better project organization and consistency. No code changes were made, ensuring functionality remains unaffected.
3.12.1
What's Changed
- feat: raise
UndefinedKey
exception on user decision by @FelixTheC in #130- new exception type
UndefinedKey
- new allowed parameter(
throw_on_undefined
) formatch_class_typing
which will be thrown if you try to init a TypeDict with an unspecified attribute/key
- new exception type
- test case example:
def test_new_parameter():
@match_class_typing(throw_on_undefined=True)
class User(TypedDict):
id: str
username: str
description: str | None
with pytest.raises(UndefinedKey):
User({"id": "0123", "username": "test", "description": None, "age": 10})
Full Changelog: v3.12.0...v3.12.1
3.12.0
3.11.4
3.11.3
3.11.1
Full Changelog: v3.10.7...v3.11.1
v3.10.7_20230212
What's Changed
- close: 115 infinite recursion when dataclass decorator comes after match class typing by @FelixTheC in #116
Full Changelog: v3.10.6...v3.10.7
v3.10.6_20230115
What's Changed
- fix: use correct type annotation by @FelixTheC in #114
Full Changelog: v3.10.5...v3.10.6
v3.10.5_20221222
Full Changelog: v3.10.4...v3.10.5
v3.10.4_20221211
What's Changed
- fix: 108 2 cannot validate typing of nested typeddict having a notrequired clause in python 310 by @FelixTheC in #110
Full Changelog: v3.10.3...v3.10.4