M crowbar_reference_compiler/ast.py => crowbar_reference_compiler/ast.py +1 -0
@@ 532,6 532,7 @@ class ASTBuilder(NodeVisitor):
return ConstantExpression(body.type)
if body.type == 'string_literal':
return ConstantExpression(body.data)
+ raise NotImplementedError('atomic expression ' + repr(body))
def visit_StructPointerElementSuffix(self, node, visited_children):
separator, element = visited_children
A mypy.ini => mypy.ini +5 -0
@@ 0,0 1,5 @@
+[mypy]
+python_version = 3.7
+check_untyped_defs = True
+allow_redefinition = True
+disable_error_code = no-redef