Skip to content

Commit

Permalink
be pragmatic about coverage and overloads
Browse files Browse the repository at this point in the history
  • Loading branch information
Anvil committed Dec 19, 2023
1 parent 09205c6 commit ba10984
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions kaioretry/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,12 @@ def wrapped(*args: FuncParam.args,
@overload
def aioretry(self, func: AwaitableFunc[FuncParam, FuncRetVal]) \
-> AioretryCoro[FuncParam, FuncRetVal]:
...
... # pragma: nocover

@overload
def aioretry(self, func: Callable[FuncParam, FuncRetVal]) \
-> AioretryCoro[FuncParam, FuncRetVal]:
...
... # pragma: nocover

def aioretry(self, func: AnyFunction[FuncParam, FuncRetVal]) \
-> AioretryCoro[FuncParam, FuncRetVal]:
Expand Down
4 changes: 2 additions & 2 deletions kaioretry/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ class AioretryProtocol(Protocol):
@overload
def __call__(self, func: AwaitableFunc[FuncParam, FuncRetVal]) \
-> AioretryCoro[FuncParam, FuncRetVal]:
...
... # pragma: nocover

@overload
def __call__(self, func: Callable[FuncParam, FuncRetVal]) \
-> AioretryCoro[FuncParam, FuncRetVal]:
...
... # pragma: nocover

def __call__(self, func: AnyFunction[FuncParam, FuncRetVal]) \
-> AioretryCoro[FuncParam, FuncRetVal]:
Expand Down

0 comments on commit ba10984

Please sign in to comment.