summaryrefslogtreecommitdiff
path: root/python/plugin.py
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2025-11-19 12:40:29 -0500
committerJosh Ferrell <josh@vector35.com>2025-11-19 15:05:16 -0500
commitdae5a014ccbfe5a99379163b49e426eeb0b9e766 (patch)
tree7e6d66c5dec8620f7299ed3e0e6c756875e871b1 /python/plugin.py
parentd4a7ed9b8fce07ce7206d4ab48b0b333ae69d47a (diff)
Improve python api type hints
Diffstat (limited to 'python/plugin.py')
-rw-r--r--python/plugin.py2
1 files changed, 1 insertions, 1 deletions
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: