Skip to content

Commit

Permalink
Remove non-existent kwargs in ast.Call() call (streamlit#8711)
Browse files Browse the repository at this point in the history
See https://docs.python.org/3.10/library/ast.html#abstract-grammar for a
reference on the attributes `ast.Call` takes.

A future version of mypy will give a type error for this code
(python/typeshed#11880).

Co-authored-by: Vincent Donato <[email protected]>
  • Loading branch information
2 people authored and benjamin-awd committed Sep 29, 2024
1 parent 0fbbf4d commit 4236a89
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/streamlit/runtime/scriptrunner/magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@ def _build_st_write_call(nodes):
),
args=nodes,
keywords=[],
kwargs=None,
starargs=None,
)


Expand Down

0 comments on commit 4236a89

Please sign in to comment.