Skip to content

Releases: antonagestam/phantom-types

0.13.0

25 Sep 14:50
Compare
Choose a tag to compare
  • 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

24 Sep 19:47
Compare
Choose a tag to compare

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

24 Sep 10:45
Compare
Choose a tag to compare

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

16 Jul 12:11
bf4d4b2
Compare
Choose a tag to compare
Bump version (#132)

0.9.1

15 Jun 20:40
891e96a
Compare
Choose a tag to compare
Make release workflow based on GH releases (#118)

0.9.0

12 Jun 16:11
e350955
Compare
Choose a tag to compare
Bump version (#113)

0.8.1

20 Apr 22:07
e60ef3d
Compare
Choose a tag to compare
Bump version (#100)

0.8.0

13 Apr 20:10
Compare
Choose a tag to compare
Bump version

0.7.1

10 Mar 16:43
bcf2e4a
Compare
Choose a tag to compare
Add typeguard to docs requirements (#89)

0.7.0

01 Mar 15:16
Compare
Choose a tag to compare
Bump version