Awesome-pattern-matching

Latest version: v0.24.4

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

Scan your dependencies

Page 3 of 5

0.16.0

- `Match` can now propagate match-options too
- `case` and `of` accept match-options
- strict option properly makes collection comparisons deeply strict

0.15.1

- Add pycoverage definitions
- Coverage ≥ 90%
- Streamline few code paths
- Add tests

0.15.0

* `_` in keys won't lock the matched key to the value pattern (this is a more intuitive behavior)
* Add support for matching and capturing types directly in the short-hand `match` style (compatible with pampy)

0.14.0

* Add `bind_groups` to `Regex`
* Rework dictionary pattern matching logic - allows for patterns in keys now (see the [tests](https://github.com/scravy/awesome-pattern-matching/blob/main/tests/test_dict.py))
* Removed `argresult=` kwarg to `match` - `MatchResult` now implements `__getattr__` by default

0.13.0

- Add `.bind()` to `MatchResult` for having a nicer API experience in Python 3.7 which lacks `:=`
- `Truish()` is not `IsTruish`

0.12.0

- Added support for Python 3.7
- Added support for PyPy 3.7
- Added support for dataclasses

Page 3 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.