returns
returns copied to clipboard
Make your functions return something meaningful, typed, and safe!
# Bug report ## What's wrong ```python from returns.result import Failure, Success, safe @safe def div(first_number: int, second_number: int) -> int: return first_number // second_number def test_div() -> str: match...
# I have made things! @pradeep90 hey! Your code is broken :) Can you validate it? In hypothesis==6.137.2, this code produced the following output: ```python >>> from hypothesis import strategies...
# Bug report Thank you for this project! I'm new to Python, so I apologize if I've overlooked something. ## What's wrong ```python from collections.abc import Callable from returns.pipeline import...
There are multiple failure here and there because of this, example: https://github.com/dry-python/returns/pull/2223 We need change it to `'SomeStrategy' in ...`-style checks.
# Bug report ## What's wrong When using `returns.curry.partial`, if you partially apply a positional parameter using a keyword argument, the resulting type is incorrect. Result type of callable allows...