mirror of
https://github.com/graphql-python/graphene.git
synced 2025-06-19 04:53:11 +03:00
* refactor: replace @deprecated decorator with upcoming native support (via typing-extensions) * chore: fix tests * chore: ruff fmt
12 lines
261 B
Python
12 lines
261 B
Python
from functools import wraps
|
|
from typing_extensions import deprecated
|
|
|
|
|
|
@deprecated("This function is deprecated")
|
|
def resolve_only_args(func):
|
|
@wraps(func)
|
|
def wrapped_func(root, info, **args):
|
|
return func(root, **args)
|
|
|
|
return wrapped_func
|