Skip to content

Commit f60d05a

Browse files
committed
fix progress and cancel callback typing
1 parent 09dc4a9 commit f60d05a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dash/_callback.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ def callback(
6868
*_args,
6969
background: bool = False,
7070
interval: int = 1000,
71-
progress: Optional[Output] = None,
71+
progress: Optional[Union[List[Output], Output]] = None,
7272
progress_default: Any = None,
7373
running: Optional[List[Tuple[Output, Any, Any]]] = None,
74-
cancel: Optional[List[Input]] = None,
74+
cancel: Optional[Union[List[Input], Input]] = None,
7575
manager: Optional[BaseBackgroundCallbackManager] = None,
7676
cache_args_to_ignore: Optional[list] = None,
7777
on_error: Optional[Callable[[Exception], Any]] = None,

0 commit comments

Comments
 (0)