Releases: scravy/awesome-pattern-matching
Releases · scravy/awesome-pattern-matching
v0.19.0
MatchContext.match
matches collection patterns if type matches exactly
- Add support for using
range
as a pattern
- 100% test (line and branch) coverage
v0.18.0
- Added
typefoo
module (Parameters
, KwArgs
, VarArgs
, see tests)
- Added
Attrs
- Except for newly added
typefoo
module, everything has 100% branch and line coverage
v0.17.0
- Added
captureall
argument to match
- Improved nesting
Capture
patterns
v0.16.0
Match
can now propagate match-options too
case
and of
accept match-options
- strict option properly makes collection comparisons deeply strict
v0.15.1
- Add pycoverage definitions
- Coverage ≥ 90%
- Streamline few code paths
- Add tests
v0.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)
v0.14.0
- Add
bind_groups
to Regex
- Rework dictionary pattern matching logic - allows for patterns in keys now (see the tests)
- Removed
argresult=
kwarg to match
- MatchResult
now implements __getattr__
by default
v0.13.0
- Add
.bind()
to MatchResult
for having a nicer API experience in Python 3.7 which lacks :=
Truish()
is not IsTruish
v0.12.0
- Added support for Python 3.7
- Added support for PyPy 3.7
- Added support for dataclasses
v0.11.0
- Make
MatchResult
inherit from collections.Mapping
such that it can be used as **kwargs