Releases: FelixTheC/strongtyping
Releases · FelixTheC/strongtyping
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
2.2.3
What's Changed
- Bump joblib from 1.0.1 to 1.2.0 in /docs by @dependabot in #101
- close: 105 recursionerror by @FelixTheC in #106
Full Changelog: v2.2.2...v2.2.3