From f2975d76648db3f9cf806a093da17d4b613a8578 Mon Sep 17 00:00:00 2001 From: Charles Cooper Date: Wed, 28 Aug 2024 12:38:14 +0800 Subject: [PATCH] fix[tool]: fix classification of AST nodes (#4210) fix classification of some AST nodes for proper type checking. this is a hygienic fix, it should have no observable semantic changes. --- vyper/ast/nodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vyper/ast/nodes.py b/vyper/ast/nodes.py index b4042c75a7..f4c99b7952 100644 --- a/vyper/ast/nodes.py +++ b/vyper/ast/nodes.py @@ -1053,7 +1053,7 @@ def _op(self, left, right): raise OverflowException(msg, self) from None -class FloorDiv(VyperNode): +class FloorDiv(Operator): __slots__ = () _description = "integer division" _pretty = "//" @@ -1334,7 +1334,7 @@ def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) -class AnnAssign(VyperNode): +class AnnAssign(Stmt): __slots__ = ("target", "annotation", "value")