Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Dec 9, 2023
1 parent ca5c94b commit 7bf52e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vyper/semantics/types/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class EventT(_UserType):

_invalid_locations = tuple(iter(DataLocation)) # not instantiable in any location

def __init__(self, name: str, arguments: dict, indexed: list, is_shadow=False) -> None:
def __init__(self, name: str, arguments: dict, indexed: list, is_shadow: bool = False) -> None:
super().__init__(members=arguments)
self.name = name
self.indexed = indexed
Expand Down
2 changes: 1 addition & 1 deletion vyper/venom/bb_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def ir_pass_optimize_unused_variables(ctx: IRFunction) -> int:


@ir_pass
def ir_pass_handle_shadow_event_instructions(ctx: IRFunction, shadow_mode=False) -> None:
def ir_pass_handle_shadow_event_instructions(ctx: IRFunction, shadow_mode: bool = False) -> None:
"""
Remove unused variables.
"""
Expand Down

0 comments on commit 7bf52e0

Please sign in to comment.