]> git.notmuchmail.org Git - apitrace/blobdiff - specs/stdapi.py
Cleanup Literal class.
[apitrace] / specs / stdapi.py
index 7044c3818d94ef88f3bc217becc485b0867076f1..0b2fe828babdf11cd1cab3b5db6143b1aae9cc5c 100644 (file)
@@ -80,10 +80,14 @@ Void = _Void()
 
 
 class Literal(Type):
+    """Class to describe literal types.
 
-    def __init__(self, expr, format):
+    Types which are not defined in terms of other types, such as integers and
+    floats."""
+
+    def __init__(self, expr, kind):
         Type.__init__(self, expr)
-        self.format = format
+        self.kind = kind
 
     def visit(self, visitor, *args, **kwargs):
         return visitor.visit_literal(self, *args, **kwargs)