Fixed bad TypeVar definition (#1288)
Identifier must match TypeVar name
This commit is contained in:
parent
202ab85bde
commit
565b6778dc
|
@ -87,7 +87,7 @@ the decorator and the parameter enforcement of the decorated function.
|
||||||
from typing import Awaitable, Callable, ParameterSpecification, TypeVar
|
from typing import Awaitable, Callable, ParameterSpecification, TypeVar
|
||||||
|
|
||||||
Ps = ParameterSpecification("Ps")
|
Ps = ParameterSpecification("Ps")
|
||||||
R = TypeVar("TReturn")
|
R = TypeVar("R")
|
||||||
|
|
||||||
def add_logging(f: Callable[Ps, R]) -> Callable[Ps, Awaitable[R]]:
|
def add_logging(f: Callable[Ps, R]) -> Callable[Ps, Awaitable[R]]:
|
||||||
async def inner(*args: Ps.args, **kwargs: Ps.kwargs) -> R:
|
async def inner(*args: Ps.args, **kwargs: Ps.kwargs) -> R:
|
||||||
|
|
Loading…
Reference in New Issue