Skip to content

Commit 52b265b

Browse files
committed
Remove AsyncParser.use_kwargs useless override
1 parent 81a1e21 commit 52b265b

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/webargs/asyncparser.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,3 @@ def wrapper(*args, **kwargs):
177177
return wrapper
178178

179179
return decorator
180-
181-
def use_kwargs(self, *args, **kwargs) -> typing.Callable:
182-
"""Decorator that injects parsed arguments into a view function or method.
183-
184-
Receives the same arguments as `webargs.core.Parser.use_kwargs`.
185-
186-
"""
187-
return super().use_kwargs(*args, **kwargs)

src/webargs/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import functools
22
import inspect
3+
import typing
34
import logging
45
import warnings
56
from collections.abc import Mapping
@@ -369,7 +370,7 @@ def wrapper(*args, **kwargs):
369370

370371
return decorator
371372

372-
def use_kwargs(self, *args, **kwargs):
373+
def use_kwargs(self, *args, **kwargs) -> typing.Callable:
373374
"""Decorator that injects parsed arguments into a view function or method
374375
as keyword arguments.
375376

0 commit comments

Comments
 (0)