github dry-python/returns 0.2.0
Version 0.2.0

latest releases: 0.23.0, 0.22.0, 0.21.0...
5 years ago

Features

  • Adds Maybe monad
  • Adds immutability and __slots__ to all monads
  • Adds methods to work with failures
  • Adds safe decorator to convert exceptions to Either monad
  • Adds is_successful() function to detect if your result is a success
  • Adds failure() method to unwrap values from failed monads

Bugfixes

  • Changes the type of .bind method for Success monad
  • Changes how equality works, so now Failure(1) != Success(1)
  • Changes how new instances created on unused methods

Misc

  • Improves docs

Don't miss a new returns release

NewReleases is sending notifications on new releases.