Releases: dry-python/returns
Releases · dry-python/returns
Version 0.24.0
Features
- Drop
python3.9
support - Add
python3.13
support - Add support for
mypy>=1.12
- Add picky exceptions to
future_safe
decorator likesafe
has - Improve inference of
ResultLike
objects when exception catching
decorator is applied with explicit exception types - Add picky exceptions to
impure_safe
decorator likesafe
has. Issue #1543 - Add partition function to result module. Issue #1905
- Add
default_error
parameter toreturns.converters.maybe_to_result
,
which provides a default error value forFailure
Version 0.23.0
Features
- Breaking: Remove
success_type
andfailure_type
fields fromIOResult
,
Maybe
andResult
types
Misc
- Now requires
mypy>=1.10
- Adds
[check-laws]
extra for installation
Version 0.22.0
Features
- Breaking: Drops
python3.7
support - Now requires
mypy>=1.5
- Adds
trampolines
support
Version 0.21.0
Features
- Now requires
mypy>=1.4
- Adds
[compatible-mypy]
extra for installation
Version 0.20.1
Bugfixes
- Fixed HKT
to_str
example in documentation - Fixed backward deserialization compatibility for BaseContainer
Version 0.20.0
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
Features
- Adds
do
notation - Adds
attempt
decorator
Misc
- Check
__slots__
correctness withslotscheck
Version 0.18.0
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 useParamSpec
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
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
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