Skip to content

Commit

Permalink
cog.server.http: quote typenames
Browse files Browse the repository at this point in the history
Signed-off-by: Yorick van Pelt <[email protected]>
  • Loading branch information
yorickvP committed Nov 22, 2023
1 parent 0cae154 commit 6af971f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cog/server/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class PredictionRequest(schema.PredictionRequest.with_types(input_type=InputType
T = TypeVar("T")
def limited(f: "Callable[P, Awaitable[T]]") -> "Callable[P, Awaitable[T]]":
@functools.wraps(f)
async def wrapped(*args: P.args, **kwargs: P.kwargs) -> T:
async def wrapped(*args: "P.args", **kwargs: "P.kwargs") -> "T":
async with http_semaphore:
return await f(*args, **kwargs)

Expand Down

0 comments on commit 6af971f

Please sign in to comment.