Commits

larry committed 5b49034

Remove silly old hack that I thought was already gone.

  • Participants
  • Parent commits aa20b52

Comments (0)

Files changed (1)

 
         assert isinstance(annotation, ast.Call)
 
-        # hack: allow None and other things here
-        # (we use None for the default return converter,
-        # which is probably a bad name anyway.)
-        if isinstance(annotation.func, ast.NameConstant):
-            assert annotation.func.value is None
-            name = 'None'
-        else:            
-            name = annotation.func.id
+        name = annotation.func.id
         kwargs = {node.arg: ast.literal_eval(node.value) for node in annotation.keywords}
         return name, False, kwargs