Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
harkal committed Mar 9, 2024
1 parent c017371 commit 2bf47c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions vyper/venom/basicblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ class IRInstruction:
parent: Optional["IRBasicBlock"]
fence_id: int
annotation: Optional[str]
source_pos: int
error_msg: str
source_pos: Optional[int]
error_msg: Optional[str]

def __init__(
self,
Expand Down
10 changes: 3 additions & 7 deletions vyper/venom/venom_to_assembly.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from collections import Counter
import functools
from typing import Any

from vyper.exceptions import CompilerPanic, StackTooDeep
Expand Down Expand Up @@ -114,7 +113,7 @@ def apply_line_numbers(inst: IRInstruction, asm) -> list[str]:
ret.append(Instruction(op, inst.source_pos, inst.error_msg))
else:
ret.append(op)
return ret
return ret # type: ignore


# TODO: "assembly" gets into the recursion due to how the original
Expand Down Expand Up @@ -343,12 +342,9 @@ def clean_stack_from_cfg_in(
self.pop(asm, stack)

def _generate_evm_for_instruction(
self,
inst: IRInstruction,
stack: StackModel,
next_liveness: OrderedSet = None,
self, inst: IRInstruction, stack: StackModel, next_liveness: OrderedSet = None
) -> list[str]:
assembly = []
assembly: list[str | int] = []
if next_liveness is None:
next_liveness = OrderedSet()
opcode = inst.opcode
Expand Down

0 comments on commit 2bf47c7

Please sign in to comment.