Skip to content

Releases: montasaurus/result

v0.19.0

08 Jan 15:01
59cd2fb
Compare
Choose a tag to compare

Breaking

  • Dropped Python 3.8 & 3.9 to simplify maintenance

Features

  • Use TypeIs instead of TypeGuard rustedpy#194 (@kreathon)
  • Added Python 3.13
  • Added support for @as_generator_result and @as_async_generator_result, which function like @as_result but wrap the yield values of a generator
  • Allow bubbling up unwrapping of nested Result inside the @as_* decorated classes. If you unwrap an Err of an exception type that you handle in the generator, it will return that Err(Exception)from the decorated function as if you had thrown the Exception directly.

Fixes

  • Switch to a uv build system with hatch
  • Switched linter to Ruff
  • Updated the links to point to forked repo