From 5b0430b3c3256f5f6fbb8fe6670d135a4c8e2524 Mon Sep 17 00:00:00 2001 From: Felix Hammerl Date: Tue, 30 Jul 2024 19:18:24 +0200 Subject: [PATCH] fix format --- resultify/__init__.py | 4 +--- test/test_resultify.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/resultify/__init__.py b/resultify/__init__.py index 320a64d..1ab2d41 100644 --- a/resultify/__init__.py +++ b/resultify/__init__.py @@ -105,9 +105,7 @@ def __init__(self, message: str) -> None: def resultify(*errors: Type[E]): - def decorator( - function: Callable[..., T] - ) -> Callable[..., Union[Ok[T], Err[E]]]: + def decorator(function: Callable[..., T]) -> Callable[..., Union[Ok[T], Err[E]]]: @wraps(function) def inner(*args, **kwargs): try: diff --git a/test/test_resultify.py b/test/test_resultify.py index 5d99300..e44471e 100644 --- a/test/test_resultify.py +++ b/test/test_resultify.py @@ -116,7 +116,7 @@ def test_hash(self): assert len({Ok("a"), Err("a")}) == 2 def test_repr(self): - assert Ok(u"£10") == eval(repr(Ok(u"£10"))) + assert Ok("£10") == eval(repr(Ok("£10"))) assert Ok("£10") == eval(repr(Ok("£10"))) def test_isinstance_result_type(self):