Needs

Latest version: v1.0.9

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

Scan your dependencies

Page 1 of 2

1.0.9

Changes:
- Fixed a bug where combination needs with or as the parent weren't raising the correct exception.

1.0.8

Changes:
- Fixed a bug where errors were not correctly preserved across combinations.

1.0.7

Changes:
- Errors inherit better for combination needs (e.g `with true_need & false_need` will raise `false_need.error`).

1.0.6

Changes:
- A `Need` can be initialized with a boolean (defaults to `True`).
- `Need` casts `is_met()` to a boolean when used as a boolean, so `is_met()` may now return either a boolean or a `Need`.

1.0.5

Changes:
- `needs` no longer wraps the need (for python 2 compatibility).

1.0.4

Changes:
- `Need`s can be used directly as decorators.
- `CombinationNeed` is used directly in place of subclasses and is bound to the `Need` class. This should allow easier subclassing.
- `CombinationNeed.error` and `NegativeNeed.error` are properties rather than being defined at instantiation. This should allow them to be overridden more easily when `Need.combinator` or `Need.negator` are overridden.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.