Skip to content

Commit b726841

Browse files
committed
Fixed tests.
1 parent aa86c27 commit b726841

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

graphene/types/field.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
from .unmountedtype import UnmountedType
99

1010

11+
base_type = type
12+
13+
1114
def source_resolver(source, root, args, context, info):
1215
resolved = getattr(root, source, None)
1316
if inspect.isfunction(resolved):
@@ -30,7 +33,7 @@ def __init__(self, type, args=None, resolver=None, source=None,
3033
)
3134
assert not callable(default_value), (
3235
'The default value can not be a function but received "{}".'
33-
).format(type(default_value))
36+
).format(base_type(default_value))
3437

3538
if required:
3639
type = NonNull(type)

0 commit comments

Comments
 (0)