Call super with args and kwargs

This commit is contained in:
Markus Padourek 2016-10-21 10:29:49 +01:00 committed by GitHub
parent 45b3ba55d7
commit 733e1f70e0

View File

@ -38,7 +38,9 @@ class Scalar(six.with_metaclass(ScalarTypeMeta, UnmountedType)):
used to parse input from ast or variables and to ensure validity. 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): def get_type(self):
return self return self
self.get_type = types.MethodType(get_type, self) self.get_type = types.MethodType(get_type, self)