From 1e79d4e59b97b12ced0135a4ec4c7c64c073b9df Mon Sep 17 00:00:00 2001 From: tserg <8017125+tserg@users.noreply.github.com> Date: Fri, 27 Oct 2023 14:02:12 +0800 Subject: [PATCH] try clearing constants dict in namespace --- vyper/semantics/namespace.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vyper/semantics/namespace.py b/vyper/semantics/namespace.py index 3d065f25a9..e22c1c417c 100644 --- a/vyper/semantics/namespace.py +++ b/vyper/semantics/namespace.py @@ -86,6 +86,7 @@ def update(self, other): def clear(self): super().clear() + self._constants.clear() self.__init__() def validate_assignment(self, attr):