Phantom-types

Latest version: v3.0.2

Safety actively analyzes 682457 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 6

2.0.0

What's Changed

* **BREAKING CHANGE** chore: Drop support for Python 3.7 by antonagestam in https://github.com/antonagestam/phantom-types/pull/273

This release also fixes compatibility with typing-extensions 4.6, the changes made when dropping support for Python 3.7 happened to also fix this. Thanks to diabolo-dan for reporting 277.

**Full Changelog**: https://github.com/antonagestam/phantom-types/compare/1.2.2...2.0.0

1.2.2

What's Changed
* Typeguard 3.0.0 hotfix by ramnes in https://github.com/antonagestam/phantom-types/pull/270

New Contributors
* ramnes made their first contribution in https://github.com/antonagestam/phantom-types/pull/270

**Full Changelog**: https://github.com/antonagestam/phantom-types/compare/1.2.1...1.2.2

1.2.1

* fix: Make `Interval` subclasses properly inherit bounds by antonagestam in https://github.com/antonagestam/phantom-types/pull/266

**Full Changelog**: https://github.com/antonagestam/phantom-types/compare/1.2.0...1.2.1

1.2.0

What's Changed
* Expose Hypothesis strategies for builtin types by antonagestam in https://github.com/antonagestam/phantom-types/pull/262


**Full Changelog**: https://github.com/antonagestam/phantom-types/compare/1.1.0...1.2.0

1.1.0

* Support Python 3.11 final by antonagestam in https://github.com/antonagestam/phantom-types/pull/242
* Remove ignored typing error of import of `CachingProtocolMeta` by flaeppe in https://github.com/antonagestam/phantom-types/pull/244
* Drop dependency on ammaraskar/sphinx-action by antonagestam in https://github.com/antonagestam/phantom-types/pull/247

**Full Changelog**: https://github.com/antonagestam/phantom-types/compare/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][renamed]. 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.

[renamed]: https://github.com/antonagestam/phantom-types/pull/232

[A parse method has been implemented for `TZAware` and `TZNaive`][parse] using python-dateutil. When python-dateutil is not installed and the `parse` methods are called with strings, they now raise `MissingDependency`.

[parse]: https://github.com/antonagestam/phantom-types/pull/234

What's changed

* Make datetime.tzinfo non-optional for TZAware by antonagestam in https://github.com/antonagestam/phantom-types/pull/233
* Give parsing ability to datetime types by antonagestam in https://github.com/antonagestam/phantom-types/pull/234
* Fixed open/closed interval definitions by g-as in https://github.com/antonagestam/phantom-types/pull/232

New Contributors

* g-as made their first contribution in https://github.com/antonagestam/phantom-types/pull/232

**Full Changelog**: https://github.com/antonagestam/phantom-types/compare/0.18.0...1.0.0

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.