Skip to content

Commit

Permalink
py36 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Jul 12, 2024
1 parent 729807d commit 424378c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solara/validate_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(...)"""
Expand Down

0 comments on commit 424378c

Please sign in to comment.