Skip to content

Commit

Permalink
fix[tool]: fix classification of AST nodes (#4210)
Browse files Browse the repository at this point in the history
fix classification of some AST nodes for proper type checking.

this is a hygienic fix, it should have no observable semantic changes.
  • Loading branch information
charles-cooper committed Aug 28, 2024
1 parent f909d6e commit f2975d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vyper/ast/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "//"
Expand Down Expand Up @@ -1334,7 +1334,7 @@ def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)


class AnnAssign(VyperNode):
class AnnAssign(Stmt):
__slots__ = ("target", "annotation", "value")


Expand Down

0 comments on commit f2975d7

Please sign in to comment.