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

Commit 603d70a

Browse files
committed
Additional corrections from review.
1 parent aca8cf6 commit 603d70a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unittest.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
import canonicaljson
4141
import signedjson.key
4242
import unpaddedbase64
43-
from typing_extensions import ParamSpec, Protocol
43+
from typing_extensions import Concatenate, ParamSpec, Protocol
4444

4545
from twisted.internet.defer import Deferred, ensureDeferred
4646
from twisted.python.failure import Failure
@@ -101,7 +101,7 @@ def value(self) -> _ExcType:
101101
...
102102

103103

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

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

0 commit comments

Comments
 (0)