Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Sep 23, 2023
1 parent fca7c1e commit 3f42212
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions tests/parser/functions/test_minmax_value.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import pytest

from vyper.exceptions import InvalidType, OverflowException
from vyper.exceptions import OverflowException
from vyper.semantics.types import DecimalT, IntegerT
from vyper.semantics.types.shortcuts import INT256_T, UINT256_T


@pytest.mark.parametrize("typ", sorted(IntegerT.all() + (DecimalT(),)))
Expand Down
2 changes: 1 addition & 1 deletion tests/parser/types/numbers/test_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pytest

from vyper.compiler import compile_code
from vyper.exceptions import InvalidType, TypeMismatch
from vyper.exceptions import TypeMismatch
from vyper.utils import MemoryPositions


Expand Down
2 changes: 1 addition & 1 deletion tests/parser/types/numbers/test_decimals.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import pytest

from vyper.exceptions import DecimalOverrideException, InvalidOperation, TypeMismatch
from vyper.exceptions import DecimalOverrideException, InvalidOperation
from vyper.utils import DECIMAL_EPSILON, SizeLimits


Expand Down
2 changes: 1 addition & 1 deletion tests/parser/types/test_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pytest

from vyper.exceptions import ArrayIndexException, InvalidType, OverflowException, TypeMismatch
from vyper.exceptions import ArrayIndexException, OverflowException, TypeMismatch


def test_list_tester_code(get_contract_with_gas_estimation):
Expand Down
2 changes: 1 addition & 1 deletion vyper/ast/folding.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def fold(vyper_module: vy_ast.Module) -> None:
changed_nodes += replace_builtin_functions(vyper_module)

for node in vyper_module.get_children(vy_ast.VariableDecl, {"is_constant": True}):
vyper_module.remove_from_body(node)
vyper_module.remove_from_body(node)


def replace_literal_ops(vyper_module: vy_ast.Module) -> int:
Expand Down
2 changes: 1 addition & 1 deletion vyper/builtins/_signatures.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import functools
from typing import Dict

from vyper.semantics.namespace import get_namespace
from vyper.ast import nodes as vy_ast
from vyper.ast.validation import validate_call_args
from vyper.codegen.expr import Expr
from vyper.codegen.ir_node import IRnode
from vyper.exceptions import CompilerPanic, TypeMismatch, UnfoldableNode, VyperException
from vyper.semantics.analysis.utils import get_exact_type_from_node, validate_expected_type
from vyper.semantics.namespace import get_namespace

Check notice

Code scanning / CodeQL

Cyclic import Note

Import of module
vyper.semantics.namespace
begins an import cycle.
from vyper.semantics.types import TYPE_T, KwargSettings, VyperType
from vyper.semantics.types.utils import type_from_annotation

Expand Down
4 changes: 2 additions & 2 deletions vyper/semantics/analysis/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def __init__(

if not derived_nodes:
break
# attach temporary namespace with constants to the module for

# attach temporary namespace with constants to the module for
# typechecking
_ns = Namespace()
_ns._constants = self.namespace._constants
Expand Down

0 comments on commit 3f42212

Please sign in to comment.