mirror of
https://github.com/graphql-python/graphene.git
synced 2025-05-05 00:43:41 +03:00
12 lines
255 B
Python
12 lines
255 B
Python
from functools import wraps
|
|
from .deprecated 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
|