Skip to content

Releases: FelixTheC/strongtyping

3.12.1

04 Dec 20:58
Compare
Choose a tag to compare

What's Changed

  • feat: raise UndefinedKey exception on user decision by @FelixTheC in #130
    • new exception type UndefinedKey
    • new allowed parameter(throw_on_undefined) for match_class_typing which will be thrown if you try to init a TypeDict with an unspecified attribute/key
  • 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

04 Oct 13:48
Compare
Choose a tag to compare
  • cleanup for the latest Python version
  • support new type annotation type Unpack for TypedDict objects

3.11.4

10 Jul 21:17
cac289c
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.2.3...v3.11.4

3.11.3

06 Jul 19:31
Compare
Choose a tag to compare
  • include strongtyping-stubs into package data

3.11.1

13 May 11:36
Compare
Choose a tag to compare

Full Changelog: v3.10.7...v3.11.1

v3.10.7_20230212

12 Feb 15:15
Compare
Choose a tag to compare

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

15 Jan 17:57
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.10.5...v3.10.6

v3.10.5_20221222

22 Dec 10:23
Compare
Choose a tag to compare

v3.10.4_20221211

11 Dec 13:11
Compare
Choose a tag to compare

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

12 Oct 17:38
33575ec
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.2.2...v2.2.3