castfit 0.1.3 #
Now with a non-exhaustive is_subtype function
castfit 0.1.3 is available. The biggest thing I did was implement is_subtype which is a forced me to learn about invariant, covariant, and contravariant types.
To install castfit:
# modern (recommended)
uv add castfit
# classic
python -m pip install castfit
Release Notes 0.1.3 - 2025-11-27T03:12:11Z #
Changed
- #33 PyPI publishing to support newer
uv buildmetadata - #40 PyPI publishing to use
uv publishinstead ofpypa/gh-action-pypi-publish
Added
- #23 ability to type check
Callableviais_subtype - #34 support for
propertyfields on classes - #35
__name__toTypeInfoif present - #36 support for default values in
dataclasses.Field - #37 support for function definitions in classes
Removed
- #40 support for python 3.9
Security
- #40 We are trying out
uv publishinstead ofpypa/gh-action-pypi-publish.