Skip to content

Commit

Permalink
Tighten type constraint on validate_kwargs
Browse files Browse the repository at this point in the history
Co-authored-by: Charles Cooper <[email protected]>
  • Loading branch information
z80dev and charles-cooper authored Oct 1, 2024
1 parent 7609e20 commit a1a5dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vyper/semantics/analysis/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ def get_expr_writes(node: vy_ast.VyperNode) -> OrderedSet[VarAccess]:
return ret


def validate_kwargs(node: vy_ast.Call, members: Dict, typeclass: str):
def validate_kwargs(node: vy_ast.Call, members: dict[str, VyperType], typeclass: str):
# manually validate kwargs for better error messages instead of
# relying on `validate_call_args`
keys = list(members.keys())
Expand Down

0 comments on commit a1a5dcb

Please sign in to comment.