Skip to content

Releases: FelixTheC/strongtyping

v3.13.1

05 Jan 12:18
Compare
Choose a tag to compare

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

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