Skip to content

Commit c5cc6c7

Browse files
committed
Fix type annotations
1 parent 6a78c74 commit c5cc6c7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cylc/flow/id.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import re
2424
from typing import (
2525
TYPE_CHECKING,
26+
Any,
2627
Iterable,
2728
List,
2829
Literal,
@@ -368,6 +369,7 @@ def is_null(self) -> bool:
368369
@overload
369370
def duplicate(
370371
self,
372+
*,
371373
cycle: str,
372374
task: str,
373375
**kwargs,
@@ -377,13 +379,14 @@ def duplicate(
377379
@overload
378380
def duplicate(
379381
self,
382+
*tokens_list: 'Tokens',
380383
**kwargs,
381384
) -> 'Tokens':
382385
...
383386

384387
def duplicate(
385388
self,
386-
*tokens_list,
389+
*tokens_list: 'Tokens',
387390
**kwargs,
388391
) -> 'Tokens':
389392
"""Duplicate a tokens object.
@@ -418,7 +421,7 @@ def duplicate(
418421
'~u/w//c/b/01'
419422
420423
"""
421-
_kwargs = {}
424+
_kwargs: dict[str, Any] = {}
422425
for tokens in (self, *tokens_list):
423426
_kwargs.update(tokens)
424427
_kwargs.update(kwargs)

0 commit comments

Comments
 (0)