Skip to content

Commit b606d6c

Browse files
fix: Progress bar no longer panics (#4421)
## Changes Made Daft runs into panics in a notebook when trying to render a progress bar: ![4AB2AB7F-FC3C-44B4-B082-C9B164425EF4](https://github.com/user-attachments/assets/b28e5158-a250-470c-9a7e-b5558e3edc57) This is because `type 'tqdm' is not subscriptable`. So we remove the subscript.
1 parent 0e21467 commit b606d6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

daft/runners/progress_bar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def get_tqdm(use_ray_tqdm: bool) -> Any:
2626
# source: https://github.com/tqdm/tqdm/blob/74722959a8626fd2057be03e14dcf899c25a3fd5/tqdm/autonotebook.py#L14
2727
if ipython is not None and "IPKernelApp" in ipython.config:
2828

29-
class tqdm(_tqdm[Any]): # type: ignore[no-redef]
29+
class tqdm(_tqdm): # type: ignore[no-redef]
3030
def __init__(self, *args: Any, **kwargs: Any) -> None:
3131
kwargs = kwargs.copy()
3232
if "file" not in kwargs:

0 commit comments

Comments
 (0)