From 5eb48c89f5e5766018d0a9c0d75a1327b67a5b95 Mon Sep 17 00:00:00 2001 From: Niko Strijbol Date: Thu, 23 May 2024 15:33:47 +0200 Subject: [PATCH] Fix another bug in type checking --- tested/dsl/ast_translator.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tested/dsl/ast_translator.py b/tested/dsl/ast_translator.py index c244ccd3..cda736a1 100644 --- a/tested/dsl/ast_translator.py +++ b/tested/dsl/ast_translator.py @@ -224,8 +224,9 @@ def _convert_expression(node: ast.expr, is_return: bool) -> Expression: "The argument of a cast function must resolve to a value." ) return evolve( - value, type=get_converter().structure(node.func.id, AllTypes) - ) # pyright: ignore + value, + type=get_converter().structure(node.func.id, AllTypes), # pyright: ignore + ) elif isinstance(node, ast.Call): if is_return: raise InvalidDslError(