Skip to content

Releases: antonagestam/phantom-types

0.13.0

Choose a tag to compare

@antonagestam antonagestam released this 25 Sep 14:50
  • Remove deprecated phantom.ext.iso3166 (#152)
  • Raise an error for known mutable bounds. Subclassing from Phantom now raises MutableType if the bound type is known to be mutable, e.g. list, set, dict and unfrozen dataclasses will all raise an error. (#156)

0.12.0

Choose a tag to compare

@antonagestam antonagestam released this 24 Sep 19:47

Added

  • Improved __repr__ for predicate factories (#148)
  • Introduce src directory layout, to make tests run against an installed version of the library (#149)
  • Make CountryCode a union of a Literal and a phantom type. This gets rid of the external dependency on the iso3166 package for country code support and moves the country code support into phantom.iso3166. The old module is still importable but yields a deprecation warning and will be removed in 0.13.0. (#136)

0.11.0

Choose a tag to compare

@antonagestam antonagestam released this 24 Sep 10:45

Added

  • Expose and document the @excepts decorator (#142). This decorator wasn't documented and therefor not previously supported, however this change moves the decorator from phantom.utils to phantom.fn so code that depended on this private function will now how to update imports.
  • Enable blacken-docs for formatting example code (#141)

Fixed

  • Don't expect callables to have __qualname__ (#143)
  • Make Interval parse strings (#145)

0.10.0

Choose a tag to compare

@antonagestam antonagestam released this 16 Jul 12:11
bf4d4b2
Bump version (#132)

0.9.1

Choose a tag to compare

@antonagestam antonagestam released this 15 Jun 20:40
891e96a
Make release workflow based on GH releases (#118)

0.9.0

Choose a tag to compare

@github-actions github-actions released this 12 Jun 16:11
e350955
Bump version (#113)

0.8.1

Choose a tag to compare

@github-actions github-actions released this 20 Apr 22:07
e60ef3d
Bump version (#100)

0.8.0

Choose a tag to compare

@github-actions github-actions released this 13 Apr 20:10
Bump version

0.7.1

Choose a tag to compare

@github-actions github-actions released this 10 Mar 16:43
bcf2e4a
Add typeguard to docs requirements (#89)

0.7.0

Choose a tag to compare

@github-actions github-actions released this 01 Mar 15:16
Bump version