mirror of
https://github.com/graphql-python/graphene.git
synced 2026-02-21 22:50:37 +03:00
22 lines
321 B
Python
22 lines
321 B
Python
from __future__ import absolute_import
|
|
|
|
import six
|
|
|
|
from graphql.pyutils.compat import Enum
|
|
|
|
try:
|
|
from inspect import signature
|
|
except ImportError:
|
|
from .signature import signature
|
|
|
|
if six.PY2:
|
|
|
|
def func_name(func):
|
|
return func.func_name
|
|
|
|
|
|
else:
|
|
|
|
def func_name(func):
|
|
return func.__name__
|