File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ def _make_memoize_key(
72
72
if kwargs :
73
73
for i , arg in enumerate (argspec .args ):
74
74
if arg in kwargs :
75
- args = args [:i ] + ( kwargs .pop (arg ),) + args [i :]
75
+ args = ( * args [:i ], kwargs .pop (arg ), * args [i :])
76
76
77
77
if args :
78
78
key_args += args
Original file line number Diff line number Diff line change @@ -179,7 +179,8 @@ def not_expr(s: Scanner) -> ast.expr:
179
179
ident = s .accept (TokenType .IDENT )
180
180
if ident :
181
181
return ast .Name (IDENT_PREFIX + ident .value , ast .Load ())
182
- s .reject ((TokenType .NOT , TokenType .LPAREN , TokenType .IDENT )) # noqa: RET503
182
+ s .reject ((TokenType .NOT , TokenType .LPAREN , TokenType .IDENT ))
183
+ return None
183
184
184
185
185
186
class MatcherAdapter (Mapping [str , bool ]):
You can’t perform that action at this time.
0 commit comments