returns
returns copied to clipboard
Make your functions return something meaningful, typed, and safe!
I am not going to merge this PR any time soon. This is just a place for discussion. TODO: - [ ] Decide how we can change the final type...
(sorry this is just a question...not a bug. didn't know where to go just for a question. maybe open a github discussion?) in the [example](https://returns.readthedocs.io/en/latest/pages/interfaces.html#applicative), ``` ... .. @classmethod ......
Have you considered adding some handy utility functions to `Maybe` and `Result`? In using `returns` I'm missing many helpful methods you can find in Rust, for example. Adding a few...
related: #874, #592 Python has a [rich set of container interfaces](https://docs.python.org/3/library/collections.abc.html), like `__iter__`, `__len__`, `__contains__`, and others. **could we treat `Maybe` as a collection (i.e. one containing 0 or 1...
I've noticed pylint is hanging (vscode's python plugin started to consume 100% CPU) when trying to lint a module that has type annotations from returns library. Consider the following `test.py`:...
# Bug report I tried out returns, because I was looking for typesafe curry implementation, but I hit a problem with my Generic / Protocol implementing attrs classes. ## What's...
I have removed `@pipeline` in `0.14` release. It had lots of problems: 1. It was not working properly with `Failure` types: #90 2. It had problems with unwrapping complex values...
https://eli.thegreenplace.net/2017/on-recursion-continuations-and-trampolines/
# Bug report ## What's wrong returns mypy plugin generate incorrect type overloads for curry decorated function with TypeVar arguments Code to reproduce issue: ```python from typing import TypeVar from...
Hey good people! I very much love what is being done here. My question is in regards to the higher kinded static typing that has been worked on. What is...