Returns

Latest version: v0.22.0

Safety actively analyzes 629564 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 5

0.5.0

Features

- Adds `compose` helper function
- Adds public API to `import returns`
- Adds `raise_exception` helper function
- Adds full traceback to `.unwrap()`


Misc

- Updates multiple dev-dependencies, including `mypy`
- Now search in the docs is working again
- Relicenses this project to `BSD`
- Fixes copyright notice in the docs

0.4.0

Features

- Moves all types to `.pyi` files
- Renames all classes according to new naming pattern
- **HUGE** improvement of types
- Renames `fmap` to `map`
- Renames `do_notation` to `pipeline`, moves it to `functions.py`
- Renames `ebind` to `rescue`
- Renames `efmap` to `fix`
- Renames `container` to `Container`
- Removes `Maybe` container, since typing does not have `NonNullable` type

0.3.1

Bugfixes

- Adds `py.typed` file to be `PEP561` compatible

0.3.0

The project is renamed to `returns` and moved to `dry-python` org.

Features

- Adds `.pyi` files for all modules,
to enable `mypy` support for 3rd party users

0.2.0

Features

- Adds `Maybe` container
- Adds immutability and `__slots__` to all containers
- Adds methods to work with failures
- Adds `safe` decorator to convert exceptions to `Result` container
- Adds `is_successful()` function to detect if your result is a success
- Adds `failure()` method to unwrap values from failed containers

Bugfixes

- Changes the type of `.bind` method for `Success` container
- Changes how equality works, so now `Failure(1) != Success(1)`
- Changes how new instances created on unused methods

Misc

- Improves docs

0.1.1

Bugfixes

- Changes how `PyPI` renders package's page

Misc

- Improves `README` with new badges and installation steps

Page 4 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.