Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Nov 16, 2023
1 parent 19b0102 commit 596958a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion vyper/builtins/_signatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ def _validate_arg_types(self, node):

for kwarg in node.keywords:
kwarg_settings = self._kwargs[kwarg.arg]
if kwarg_settings.require_literal and not check_variable_constancy(kwarg.value, VariableConstancy.RUNTIME_CONSTANT):
if kwarg_settings.require_literal and not check_variable_constancy(
kwarg.value, VariableConstancy.RUNTIME_CONSTANT
):
raise TypeMismatch("Value must be literal or environment variable", kwarg.value)
self._validate_single(kwarg.value, kwarg_settings.typ)

Expand Down
7 changes: 6 additions & 1 deletion vyper/semantics/types/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
StateAccessViolation,
StructureException,
)
from vyper.semantics.analysis.base import FunctionVisibility, StateMutability, StorageSlot, VariableConstancy
from vyper.semantics.analysis.base import (
FunctionVisibility,
StateMutability,
StorageSlot,
VariableConstancy,
)
from vyper.semantics.analysis.utils import check_variable_constancy, validate_expected_type
from vyper.semantics.data_locations import DataLocation
from vyper.semantics.types.base import KwargSettings, VyperType
Expand Down

0 comments on commit 596958a

Please sign in to comment.