returns
returns copied to clipboard
Make your functions return something meaningful, typed, and safe!
Fix/1920
# I have made things! ## Checklist - [X] I have double checked that there are no unrelated changes in this pull request (old patches, accidental config files, etc) -...
There are two things that we need to do: 1. Add 3.13 to CI 2. Add `__replace__` magic method https://docs.python.org/3.13/library/copy.html#object.__replace__ to `Container` base class, so we can support https://docs.python.org/3.13/library/copy.html#copy.replace
Bumps [mypy](https://github.com/python/mypy) from 1.15.0 to 1.16.1. Changelog Sourced from mypy's changelog. Mypy Release Notes Next Release Remove Support for targeting Python 3.8 Mypy now requires --python-version 3.9 or greater. Support...
# I have made things! ## Checklist - [x] I have double checked that there are no unrelated changes in this pull request (old patches, accidental config files, etc) -...
Fix ReAwaitable to support concurrent await calls This PR adds thread-safe caching with asyncio.Lock to prevent race conditions when multiple tasks await the same ReAwaitable instance concurrently. The implementation maintains...
# Bug report ## What's wrong When using Return's plugin mypy crashes with the following error: ```shell $ uv run mypy --show-traceback -p data_manager hidden_path/.venv/lib/python3.13/site-packages/returns/primitives/hkt.py:87: error: INTERNAL ERROR -- Please...
# I have made things! Fix for issue: #2108 ## Checklist - [x] I have double checked that there are no unrelated changes in this pull request - [x] I...
Before processing further, here a little snippet how it could look like. - [ ] I have double checked that there are no unrelated changes in this pull request (old...
- Added a bugfix entry in CHANGELOG for `curry.partial` compatibility with mypy 1.6.1+. - Modified `inference.py` to use a local variable for argument inference context. - Added mypy configuration file...
- Implemented the __replace__ method in BaseContainer to allow for the creation of new container instances with modified internal values, in line with the copy.replace() function introduced in Python 3.13....