Skip to content

Releases: dry-python/returns

Version 0.24.0

01 Dec 17:52
ae3845a
Compare
Choose a tag to compare

Features

  • Drop python3.9 support
  • Add python3.13 support
  • Add support for mypy>=1.12
  • Add picky exceptions to future_safe decorator like safe has
  • Improve inference of ResultLike objects when exception catching
    decorator is applied with explicit exception types
  • Add picky exceptions to impure_safe decorator like safe has. Issue #1543
  • Add partition function to result module. Issue #1905
  • Add default_error parameter to returns.converters.maybe_to_result,
    which provides a default error value for Failure

Version 0.23.0

15 Jun 09:18
b3a3967
Compare
Choose a tag to compare

Features

  • Breaking: Remove success_type and failure_type fields from IOResult,
    Maybe and Result types

Misc

  • Now requires mypy>=1.10
  • Adds [check-laws] extra for installation

Version 0.22.0

26 Aug 13:41
7cf5ef5
Compare
Choose a tag to compare

Features

  • Breaking: Drops python3.7 support
  • Now requires mypy>=1.5
  • Adds trampolines support

Version 0.21.0

27 Jun 15:47
b11c288
Compare
Choose a tag to compare

Features

  • Now requires mypy>=1.4
  • Adds [compatible-mypy] extra for installation

Version 0.20.1

23 Jun 20:29
c25ee24
Compare
Choose a tag to compare

Bugfixes

  • Fixed HKT to_str example in documentation
  • Fixed backward deserialization compatibility for BaseContainer

Version 0.20.0

21 Apr 13:14
efa9b2d
Compare
Choose a tag to compare

Features

  • Now requires mypy>=1.2

Bugfixes

  • Fixes a problem with do-notation and type aliases
  • Fixes custom pickle protocol to handle None values gracefully
  • Removes broken drylabs.io link in README
  • Revises pointfree documentation

0.19.0 aka The Do Notation

13 Mar 14:33
499bbdf
Compare
Choose a tag to compare

Features

  • Adds do notation
  • Adds attempt decorator

Misc

  • Check __slots__ correctness with slotscheck

Version 0.18.0

31 Dec 16:50
97d8918
Compare
Choose a tag to compare

New Year Release! 🎄

Features

  • Now requires typing_extensions>=4.0
  • Now requires mypy>=0.930
  • Removes plugin for @safe, @maybe, @future, etc.
    Because we now use ParamSpec type to properly type decorators

Bugfixes

  • Fixes __slots__ not being set properly in containers and their base classes
  • Fixes patching of containers in pytest plugin not undone after each test

Version 0.17.0

05 Oct 07:48
6662b60
Compare
Choose a tag to compare

Features

  • Python3.10 support
  • Enables Pattern Matching support for Result containers
  • Enables Pattern Matching support for Maybe container
  • Enables Pattern Matching support for IOResult container
  • Improves hypothesis plugin, now we detect
    when type cannot be constructed and give a clear error message

Version 0.16.0

26 Mar 15:34
36e7cbf
Compare
Choose a tag to compare

Features

  • Makes _Nothing a singleton
  • Refactor flow function to be faster

Bugfixes

  • Fixes that assert_trace was not catching containers
    from @safe-wrapped functions

Misc

  • Fixes typos in documentation