Skip to content

Commit

Permalink
Add return type hint to compile_node
Browse files Browse the repository at this point in the history
  • Loading branch information
BolunThompson committed Jan 5, 2025
1 parent 076d0d6 commit a87c0dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/ast_to_ir.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def compile_asts(ast_objects: "list[AstNode]", fileIdGen, config):
return compiled_asts


def compile_node(ast_object, fileIdGen, config):
def compile_node(ast_object, fileIdGen, config) -> IR:
global compile_cases
return ast_match(ast_object, compile_cases, fileIdGen, config)

Expand Down

0 comments on commit a87c0dc

Please sign in to comment.