Wraps

Latest version: v0.15.0

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

Scan your dependencies

Page 1 of 3

0.12.0

Features

- Added `or_raise`, `or_raise_with` and `or_raise_with_await` for
`Option[T]`, `Result[T, E]` and their future counterparts.

0.11.0

Features

- Added `wrap_option_on`, `wrap_option_await_on`, `wrap_result_on` and `wrap_result_await_on`.

Changes

- `wrap_option`, `wrap_option_await`, `wrap_result` and `wrap_result_await` are no longer
subscriptable: their `wrap_on` counterparts should be used to specify error types to handle.

- `reawaitable` was renamed to `wrap_reawaitable` for consistency.

0.10.0

Changes

- The entire library was refactored.

0.9.2

Changes

- Improved type narrowing via using `TypeIs` instead of `TypeGuard`.

0.9.1

No significant changes.

0.9.0

Features

- Added `map_either` and `map_either_await` to `Either[L, R]`.
- Updated `FutureEither[L, R]` to be in sync with `Either[L, R]`.

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.