Skip to content

Commit 886b584

Browse files
committed
typehint the add_task method
1 parent 94d535c commit 886b584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc/progress_bar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ class ProgressBar(Protocol):
208208
def tasks(self) -> list[ProgressTask]:
209209
"""Get the tasks in the progress bar."""
210210

211-
def add_task(self, *args, **kwargs):
211+
def add_task(self, *args, **kwargs) -> ProgressTask | None:
212212
"""Add a task to the progress bar."""
213213

214214
def update(self, task_id, **kwargs):

0 commit comments

Comments
 (0)