Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Mar 23, 2024
1 parent d6e9a72 commit 2772e37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 7 additions & 1 deletion tests/functional/syntax/test_for_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
import pytest

from vyper import compiler
from vyper.exceptions import ArgumentException, StateAccessViolation, StructureException, TypeMismatch, UnknownType
from vyper.exceptions import (
ArgumentException,
StateAccessViolation,
StructureException,
TypeMismatch,
UnknownType,
)

fail_list = [
(
Expand Down
3 changes: 1 addition & 2 deletions vyper/semantics/analysis/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -937,8 +937,7 @@ def _validate_range_call(node: vy_ast.Call):

if any(isinstance((extcall := n), vy_ast.ExtCall) for n in (start, end)):
raise StateAccessViolation(
"May not call state modifying function within a range expression.",
extcall,
"May not call state modifying function within a range expression.", extcall
)

if "bound" in kwargs:
Expand Down

0 comments on commit 2772e37

Please sign in to comment.