~boringcactus/crowbar-reference-compiler

67e4837345d6b3127ddd0ae281434d40f3b6b377 — Melody Horn 1 year, 6 months ago b6258d3
fix type checking
2 files changed, 6 insertions(+), 0 deletions(-)

M crowbar_reference_compiler/ast.py
A mypy.ini
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