Skip to content

Commit 1c2e3cb

Browse files
committed
hoist type annotation to fix typecheck failure
1 parent 0acc44b commit 1c2e3cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pipescript/tracers/macro_tracer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,13 +865,13 @@ def handle_macro(
865865
__hide_pyccolo_frame__ = True
866866
func = cast(ast.Name, node.value).id
867867
block_id = block_marker_id(node)
868+
callable_expr: ast.expr
868869
if block_id is not None:
869870
callable_expr = self._handle_block_macro(node, frame, func, block_id)
870871
evaluated_lambda = pyc.eval(callable_expr, frame.f_globals, frame.f_locals)
871872
ret = lambda: __hide_pyccolo_frame__ and evaluated_lambda # noqa: E731
872873
self.lambda_cache[lambda_cache_key] = ret
873874
return ret
874-
callable_expr: ast.expr
875875
if func in ("macro", "method"):
876876
macro = DynamicMacro.create(node.slice, self, is_method=func == "method")
877877
ret = lambda: __hide_pyccolo_frame__ and macro # noqa: E731

0 commit comments

Comments
 (0)