From dae5a014ccbfe5a99379163b49e426eeb0b9e766 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Wed, 19 Nov 2025 12:40:29 -0500 Subject: Improve python api type hints --- python/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/plugin.py') diff --git a/python/plugin.py b/python/plugin.py index c2d25948..d8206bb8 100644 --- a/python/plugin.py +++ b/python/plugin.py @@ -1073,7 +1073,7 @@ class BackgroundTask(metaclass=_BackgroundTaskMetaclass): :param initial_progress_text: text description of the task to display in the status bar in the UI, defaults to `""` :param can_cancel: whether to enable cancellation of the task, defaults to `False` """ - def __init__(self, initial_progress_text="", can_cancel=False, handle=None): + def __init__(self, initial_progress_text: str = "", can_cancel: bool = False, handle=None): if handle is None: self.handle = core.BNBeginBackgroundTask(initial_progress_text, can_cancel) else: -- cgit v1.3.1