diff --git a/tests/functional/syntax/test_for_range.py b/tests/functional/syntax/test_for_range.py index 720e17205e..f10d2185c3 100644 --- a/tests/functional/syntax/test_for_range.py +++ b/tests/functional/syntax/test_for_range.py @@ -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 = [ ( diff --git a/vyper/semantics/analysis/local.py b/vyper/semantics/analysis/local.py index 066007768b..c2f1dbf7d5 100644 --- a/vyper/semantics/analysis/local.py +++ b/vyper/semantics/analysis/local.py @@ -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: