Skip to content

Commit 82edc0a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 875be6a commit 82edc0a

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

returns/curry.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,16 @@
1313

1414
class _PartialDecorator(Generic[_ReturnType]):
1515
"""Wraps ``functools.partial`` into a decorator without nesting."""
16+
1617
__slots__ = ('_args', '_kwargs')
1718

1819
def __init__(self, args: tuple[Any, ...], kwargs: dict[str, Any]) -> None:
1920
self._args = args
2021
self._kwargs = kwargs
2122

22-
def __call__(self, inner: Callable[..., _ReturnType]) -> Callable[..., _ReturnType]:
23+
def __call__(
24+
self, inner: Callable[..., _ReturnType]
25+
) -> Callable[..., _ReturnType]:
2326
return _partial(inner, *self._args, **self._kwargs)
2427

2528

tests/test_curry/test_partial.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from typing import Callable, TypeAlias, TypeVar, cast
1+
from collections.abc import Callable
2+
from typing import TypeAlias, TypeVar, cast
23

34
from returns.curry import partial
45

0 commit comments

Comments
 (0)