From 8f8f79d79990c79b3fe9f5d1e39ef3abbd8f60a7 Mon Sep 17 00:00:00 2001 From: "Johan B.W. de Vries" Date: Mon, 26 Dec 2022 13:35:26 +0100 Subject: [PATCH] Comment fixes --- phasm/parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phasm/parser.py b/phasm/parser.py index e4cc56f..ae02172 100644 --- a/phasm/parser.py +++ b/phasm/parser.py @@ -41,7 +41,7 @@ def phasm_parse(source: str) -> Module: our_visitor = OurVisitor() return our_visitor.visit_Module(res) -OurLocals = Dict[str, Union[FunctionParam]] # Also local variable and module constants? +OurLocals = Dict[str, Union[FunctionParam]] # FIXME: Does it become easier if we add ModuleConstantDef to this dict? class OurVisitor: """ @@ -147,7 +147,7 @@ class OurVisitor: if node.returns is not None: # Note: `-> None` would be a ast.Constant function.returns_type3 = self.visit_type(module, node.returns) else: - # Mostly works already, needs to fix Function.returns_type3 and have it updated + # FIXME: Mostly works already, needs to fix Function.returns_type3 and have it updated raise NotImplementedError('Function without an explicit return type') _not_implemented(not node.type_comment, 'FunctionDef.type_comment')