Releases: antonagestam/phantom-types
1.1.0
- Support Python 3.11 final by @antonagestam in #242
- Remove ignored typing error of import of
CachingProtocolMeta
by @flaeppe in #244 - Drop dependency on ammaraskar/sphinx-action by @antonagestam in #247
Full Changelog: 1.0.0...v1.1.0
1.0.0
Breaking changes
There are two breaking changes in this release. Because interval types and predicate functions were incorrectly named, they have been renamed to use the terms inclusive/exclusive instead of closed/open. Renaming them has the benefit that more breakage downstream should be discovered in earlier stages, e.g. in test suites and at import-time, instead of breaking at runtime in production environments.
A parse method has been implemented for TZAware
and TZNaive
using python-dateutil. When python-dateutil is not installed and the parse
methods are called with strings, they now raise MissingDependency
.
What's changed
- Make datetime.tzinfo non-optional for TZAware by @antonagestam in #233
- Give parsing ability to datetime types by @antonagestam in #234
- Fixed open/closed interval definitions by @g-as in #232
New Contributors
Full Changelog: 0.18.0...1.0.0
0.18.0
What's Changed
- Canonicalize mutable bound check by @antonagestam in #224
- Introduce PhantomBound and NonEmptyStr by @antonagestam in #193
- Drop workaround for fixed 3.11 issue (see #220) by @antonagestam in #228
Full Changelog: v0.17.1...0.18.0
0.17.1
0.17.0
New features
- Use narrower types in predicates and bounds by @antonagestam in #218
Fixed
- Fix broken docstring function references by @antonagestam in #204
- Pin numerary on Python 3.7 by @antonagestam in #213
Meta
- Add .editorconfig pre-commit check by @antonagestam in #205
- Add project URLs to setup.cfg by @antonagestam in #212
- Remove duplicate section in docs by @antonagestam in #208
- Make base modules private by @antonagestam in #215
- Bump pre-commit hooks by @antonagestam in #216
- Run test suite on Python 3.11 by @antonagestam in #217
Full Changelog: 0.16.0...v0.17.0
0.16.0
What's Changed
- Explode partials in reprs by @antonagestam in #191
- Remove instability notice by @antonagestam in #192
- Introduce SequenceNotStr by @antonagestam in #194
- Add minLength/maxLength to Schema by @antonagestam in #198
Full Changelog: 0.15.1...0.16.0
0.15.1
Fix broken reusable workflow reference (#188)
0.15.0
0.14.0
0.13.1
Bump version