Skip to content

Commit

Permalink
Fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
chrhansk committed Nov 1, 2024
1 parent 133b20b commit 11e8102
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,17 +495,17 @@ module.exports = grammar(Python, {

c_parameters: $ => seq("(", optional($._typedargslist), ")"),
_typedargslist: $ =>
choice(
"...",
seq(
commaSep1(seq(
$.maybe_typed_name,
optional(seq(":", $.c_type)),
optional(seq("=", choice($.expression, "*"))),
)),
optional(","),
)
),
choice(
"...",
seq(
commaSep1(seq(
$.maybe_typed_name,
optional(seq(":", $.c_type)),
optional(seq("=", choice($.expression, "*"))),
)),
optional(","),
),
),

gil_spec: _ => choice(seq("with", choice("gil", "nogil")), "nogil"),
exception_value: $ =>
Expand Down

0 comments on commit 11e8102

Please sign in to comment.