Skip to content

Commit

Permalink
Fix another bug in type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
niknetniko committed May 23, 2024
1 parent fa4c9ae commit 5eb48c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tested/dsl/ast_translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5eb48c8

Please sign in to comment.