Skip to content

Commit

Permalink
Update convert.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
mtshiba committed Oct 4, 2023
1 parent b9fa998 commit 058e4b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/py2erg/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ impl ASTConverter {
.keywords
.into_iter()
.map(|Keyword { arg, value, range }| {
let name = arg.unwrap();
let name = arg.unwrap_or(rustpython_ast::Identifier::new("_"));
let name = Token::symbol_with_loc(name.to_string(), pyloc_to_ergloc(range));
let ex = self.convert_expr(value);
KwArg::new(name, None, ex)
Expand Down

0 comments on commit 058e4b9

Please sign in to comment.