Skip to content

Commit c6dc124

Browse files
committed
fix compiler warning
1 parent 95dc8b5 commit c6dc124

File tree

3 files changed

+267
-243
lines changed

3 files changed

+267
-243
lines changed

Grammar/Grammar

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ decorators: decorator+
2424
decorated: decorators (classdef | funcdef)
2525
funcdef: 'def' NAME parameters ['->' test] ':' suite
2626
parameters: '(' [typedargslist] ')'
27-
typedargslist: (tfpdef ['=' test] (',' tfpdef ['=' test])* [','
27+
typedargslist: (tfpdef ['=' test] (',' tfpdef ['=' test])*
28+
[',' '/' (',' tfpdef ['=' test])*] [','
2829
['*' [tfpdef] (',' tfpdef ['=' test])* [',' '**' tfpdef] | '**' tfpdef]]
2930
| '*' [tfpdef] (',' tfpdef ['=' test])* [',' '**' tfpdef] | '**' tfpdef)
3031
tfpdef: NAME [':' test]

0 commit comments

Comments
 (0)