Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Additional corrections from review.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Jul 27, 2022
1 parent aca8cf6 commit 603d70a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
import canonicaljson
import signedjson.key
import unpaddedbase64
from typing_extensions import ParamSpec, Protocol
from typing_extensions import Concatenate, ParamSpec, Protocol

from twisted.internet.defer import Deferred, ensureDeferred
from twisted.python.failure import Failure
Expand Down Expand Up @@ -101,7 +101,7 @@ def value(self) -> _ExcType:
...


def around(target: TV) -> Callable[[Callable[P, R]], None]:
def around(target: TV) -> Callable[[Callable[Concatenate[TV, P], R]], None]:
"""A CLOS-style 'around' modifier, which wraps the original method of the
given instance with another piece of code.
Expand All @@ -110,7 +110,7 @@ def method_name(orig, *args, **kwargs):
return orig(*args, **kwargs)
"""

def _around(code: Callable[P, R]) -> None:
def _around(code: Callable[Concatenate[TV, P], R]) -> None:
name = code.__name__
orig = getattr(target, name)

Expand Down

0 comments on commit 603d70a

Please sign in to comment.