diff --git a/graphenebase/types.py b/graphenebase/types.py index 14e69f60..d3256e24 100644 --- a/graphenebase/types.py +++ b/graphenebase/types.py @@ -233,7 +233,7 @@ def __init__(self, d): super().__init__(d) def __str__(self): - return True if self.data else False + return json.dumps(True) if self.data else json.dumps(False) class Set(Array): # Set = Array @@ -382,9 +382,9 @@ def __init__(self, selection): "Options are %s. Given '%s'" % ( self.options, selection) if selection in self.options: - super(Enum, self).__init__(self.options.index(selection)) + super(Enum8, self).__init__(self.options.index(selection)) else: - super(Enum, self).__init__(selection) + super(Enum8, self).__init__(selection) def __str__(self): return str(self.options[self.data]) diff --git a/setup.py b/setup.py index 3a4ff6d7..3bde66d5 100755 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ ascii = codecs.lookup('ascii') codecs.register(lambda name, enc=ascii: {True: enc}.get(name == 'mbcs')) -VERSION = '0.5.3' +VERSION = '0.5.4' setup( name='graphenelib',