Skip to content

Commit

Permalink
fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Nov 7, 2023
1 parent 0625bbb commit 684a83d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vyper/builtins/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def generate_inline_function(code, variables, variables_2, memory_allocator):
# annotate the AST as side effects.
FunctionNodeVisitor(ast_code, ast_code.body[0], namespace)

new_context = Context(vars_=variables, global_ctx=ModuleT(), memory_allocator=memory_allocator)
new_context = Context(vars_=variables, module_ctx=ModuleT(), memory_allocator=memory_allocator)

Check failure

Code scanning / CodeQL

Wrong number of arguments in a class instantiation Error

Call to
ModuleT.__init__
with too few arguments; should be no fewer than 1.
generated_ir = parse_body(ast_code.body[0].body, new_context)
# strip source position info from the generated_ir since
# it doesn't make any sense (e.g. the line numbers will start from 0
Expand Down

0 comments on commit 684a83d

Please sign in to comment.