We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d41646 commit d50fb33Copy full SHA for d50fb33
graphene/relay/types.py
@@ -1,3 +1,4 @@
1
+import inspect
2
import warnings
3
from functools import wraps
4
from graphql_relay.node.node import to_global_id
@@ -82,7 +83,8 @@ def _prepare_class(cls):
82
83
if isinstance(get_node, staticmethod):
84
args -= 1
85
- if get_node.func_code.co_argcount < args:
86
+ get_node_num_args = len(inspect.getargspec(get_node).args)
87
+ if get_node_num_args < args:
88
warnings.warn("get_node will receive also the info arg"
89
" in future versions of graphene".format(cls.__name__),
90
FutureWarning)
0 commit comments