Skip to content

Releases: scravy/awesome-pattern-matching

v0.19.0

24 Jan 21:40
Compare
Choose a tag to compare
  • 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

20 Jan 22:26
Compare
Choose a tag to compare
  • 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

20 Jan 07:36
Compare
Choose a tag to compare
  • Added captureall argument to match
  • Improved nesting Capture patterns

v0.16.0

19 Jan 20:52
Compare
Choose a tag to compare
  • Match can now propagate match-options too
  • case and of accept match-options
  • strict option properly makes collection comparisons deeply strict

v0.15.1

17 Jan 11:30
Compare
Choose a tag to compare
  • Add pycoverage definitions
  • Coverage ≥ 90%
  • Streamline few code paths
  • Add tests

v0.15.0

17 Jan 04:54
Compare
Choose a tag to compare
  • _ 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

16 Jan 17:53
Compare
Choose a tag to compare
  • 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

13 Jan 07:57
Compare
Choose a tag to compare
  • Add .bind() to MatchResult for having a nicer API experience in Python 3.7 which lacks :=
  • Truish() is not IsTruish

v0.12.0

11 Jan 23:35
Compare
Choose a tag to compare
  • Added support for Python 3.7
  • Added support for PyPy 3.7
  • Added support for dataclasses

v0.11.0

10 Jan 22:02
Compare
Choose a tag to compare
  • Make MatchResult inherit from collections.Mapping such that it can be used as **kwargs