File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 23
23
import re
24
24
from typing import (
25
25
TYPE_CHECKING ,
26
+ Any ,
26
27
Iterable ,
27
28
List ,
28
29
Literal ,
@@ -368,6 +369,7 @@ def is_null(self) -> bool:
368
369
@overload
369
370
def duplicate (
370
371
self ,
372
+ * ,
371
373
cycle : str ,
372
374
task : str ,
373
375
** kwargs ,
@@ -377,13 +379,14 @@ def duplicate(
377
379
@overload
378
380
def duplicate (
379
381
self ,
382
+ * tokens_list : 'Tokens' ,
380
383
** kwargs ,
381
384
) -> 'Tokens' :
382
385
...
383
386
384
387
def duplicate (
385
388
self ,
386
- * tokens_list ,
389
+ * tokens_list : 'Tokens' ,
387
390
** kwargs ,
388
391
) -> 'Tokens' :
389
392
"""Duplicate a tokens object.
@@ -418,7 +421,7 @@ def duplicate(
418
421
'~u/w//c/b/01'
419
422
420
423
"""
421
- _kwargs = {}
424
+ _kwargs : dict [ str , Any ] = {}
422
425
for tokens in (self , * tokens_list ):
423
426
_kwargs .update (tokens )
424
427
_kwargs .update (kwargs )
You can’t perform that action at this time.
0 commit comments