github dry-python/returns 0.12.0
Version 0.12.0

latest releases: 0.22.0, 0.21.0, 0.20.1...
4 years ago

Features

  • Breaking: now @pipeline requires a container type when created:
    @pipeline(Result) or @pipeline(Maybe)
  • Maybe and Result now has success_type and failure_type aliases
  • Adds Result.unify utility method for better error type composition
  • We now support dry-python/classes as a first-class citizen
  • Adds io_squash to squash several IO containers into one container
    with a tuple inside, currently works with 9 containers max at a time
  • Adds untap function which does convert return type to None

Bugfixes

  • Fixes that containers were not usable with multiprocessing
  • Changes the inheritance order, now BaseContainer is the first child
  • Fixes that Nothing had incorrect docstrings

Misc

  • Now generated package is protected
  • Updates poetry to 1.0

Don't miss a new returns release

NewReleases is sending notifications on new releases.