graphene/graphene/utils/resolve_only_args.py
Dan 034b5385a5 Add isort precommit hook & run on all files (#743)
* Add isort and seed-isort-config pre-commit hook

* Fix erroneous isort moving comment to the top of file
2018-05-28 19:18:54 +01:00

13 lines
256 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