Skip to content

Commit

Permalink
fix folding
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Sep 25, 2023
1 parent 6f92e43 commit 9102536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vyper/ast/folding.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def replace_user_defined_constants(vyper_module: vy_ast.Module) -> int:
# annotation is not wrapped in `constant(...)`
continue

type_ = node._metadata["type"]
type_ = node._metadata.get("type", None)
changed_nodes += replace_constant(
vyper_module, node.target.id, node.value, False, type_=type_
)
Expand Down

0 comments on commit 9102536

Please sign in to comment.