From 424378c385d94002a6403eaed26517166afa9bf3 Mon Sep 17 00:00:00 2001 From: "Maarten A. Breddels" Date: Fri, 12 Jul 2024 16:30:49 +0200 Subject: [PATCH] py36 compatible --- solara/validate_hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solara/validate_hooks.py b/solara/validate_hooks.py index 70132d293..16a45dca0 100644 --- a/solara/validate_hooks.py +++ b/solara/validate_hooks.py @@ -71,7 +71,7 @@ def node_to_scope_cause(self, node: ScopeNodeType) -> InvalidReactivityCause: elif isinstance(node, TryNodes): return InvalidReactivityCause.EXCEPTION_USE else: - raise ValueError(f"Unexpected scope node type: {node}, {node.lineno=}") + raise ValueError(f"Unexpected scope node type: {node}, line={node.lineno}") def visit_Call(self, node: ast.Call): """Records calls of use functions, i.e. solara.use_state(...)"""