Fixed bad TypeVar definition (#1288)

Identifier must match TypeVar name
This commit is contained in:
Jason Fried 2020-01-29 15:21:31 -08:00 committed by GitHub
parent 202ab85bde
commit 565b6778dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ the decorator and the parameter enforcement of the decorated function.
from typing import Awaitable, Callable, ParameterSpecification, TypeVar
Ps = ParameterSpecification("Ps")
R = TypeVar("TReturn")
R = TypeVar("R")
def add_logging(f: Callable[Ps, R]) -> Callable[Ps, Awaitable[R]]:
async def inner(*args: Ps.args, **kwargs: Ps.kwargs) -> R: