Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -47,9 +47,6 @@ show_missing = true
skip_covered = true
fail_under = 95

[project.entry-points.pytest11]
papertrail = "papertrail.__main__"

[tool.pytest]
# addopts = ["--codspeed"]

Expand Down
2 changes: 1 addition & 1 deletion src/danom/_new_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/danom/_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading