From 57f80e4eac154774d1007962be77252ad8be11ba Mon Sep 17 00:00:00 2001 From: ed cuss Date: Thu, 16 Apr 2026 20:36:34 +0100 Subject: [PATCH 1/3] docs: update doc examples --- src/danom/_new_type.py | 2 +- src/danom/_result.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/danom/_new_type.py b/src/danom/_new_type.py index 5d623e7..18ce029 100644 --- a/src/danom/_new_type.py +++ b/src/danom/_new_type.py @@ -47,7 +47,7 @@ def new_type( # noqa: ANN202 from danom import new_type def has_len(email: str) -> bool: - return len(email) > 0 + return len(email) > 0 Email = new_type("Email", str, validators=[has_len]) Email("some_email@domain.com").upper() == "SOME_EMAIL@DOMAIN.COM" diff --git a/src/danom/_result.py b/src/danom/_result.py index b1f186b..ed303c3 100644 --- a/src/danom/_result.py +++ b/src/danom/_result.py @@ -161,7 +161,7 @@ def result_unwrap(result: Result[T_co, E_co]) -> T_co: .. code-block:: python - from danom import Stream, Result + from danom import Err, Ok, Stream, Result oks, errs = Stream.from_iterable([Ok(1), Ok(2), Err()]).partition(Result.result_is_ok) oks.map(Result.result_unwrap).collect == (1, 2) From 93c33da7a731a04e440bed6af9a9f12d292c1f27 Mon Sep 17 00:00:00 2001 From: Kevin Turcios <106575910+KRRT7@users.noreply.github.com> Date: Sat, 25 Apr 2026 05:38:13 -0500 Subject: [PATCH 2/3] Remove papertrail pytest11 entrypoint (#35) The pytest11 entrypoint for papertrail causes pytest to crash with ModuleNotFoundError for every project that depends on danom but does not have papertrail installed. The papertrail package itself already commented out this entrypoint in its own pyproject.toml, so danom should not register it either. Co-authored-by: Ed Cuss <100875124+second-ed@users.noreply.github.com> --- pyproject.toml | 3 --- 1 file changed, 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8256c50..c36be94 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,9 +47,6 @@ show_missing = true skip_covered = true fail_under = 95 -[project.entry-points.pytest11] -papertrail = "papertrail.__main__" - [tool.pytest] # addopts = ["--codspeed"] From c7e2b72f537605b32bb2c4fe958942d54055618a Mon Sep 17 00:00:00 2001 From: ed cuss Date: Sat, 25 Apr 2026 11:40:41 +0100 Subject: [PATCH 3/3] bump: => 0.13.1 --- pyproject.toml | 2 +- uv.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c36be94..b0e42fb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "danom" -version = "0.13.0" +version = "0.13.1" description = "Functional streams and monads" readme = "README.md" license = "MIT" diff --git a/uv.lock b/uv.lock index 338db63..c6778d9 100644 --- a/uv.lock +++ b/uv.lock @@ -343,7 +343,7 @@ wheels = [ [[package]] name = "danom" -version = "0.13.0" +version = "0.13.1" source = { editable = "." } dependencies = [ { name = "attrs" },