From 733e1f70e085240fa9a3098ded5aac2794bb3c4d Mon Sep 17 00:00:00 2001 From: Markus Padourek Date: Fri, 21 Oct 2016 10:29:49 +0100 Subject: [PATCH] Call super with args and kwargs --- graphene/types/scalars.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/graphene/types/scalars.py b/graphene/types/scalars.py index c917949e..d2263c04 100644 --- a/graphene/types/scalars.py +++ b/graphene/types/scalars.py @@ -38,7 +38,9 @@ class Scalar(six.with_metaclass(ScalarTypeMeta, UnmountedType)): used to parse input from ast or variables and to ensure validity. ''' - def __init__(self): + def __init__(self, *args, **kwargs): + super(Scalar, self).__init__(*args, **kwargs) + def get_type(self): return self self.get_type = types.MethodType(get_type, self)