Skip to content

Commit

Permalink
fix optional tqdm
Browse files Browse the repository at this point in the history
  • Loading branch information
xoolive committed Sep 26, 2024
1 parent 014b685 commit ae248ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/traffic/data/datasets/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
from typing import TypedDict

import httpx
from tqdm.rich import tqdm

from ... import cache_dir
from ...core import tqdm

client = httpx.Client(follow_redirects=True)

Expand Down Expand Up @@ -35,7 +35,7 @@ def get_data(self, entry: Entry) -> Path:
file_handle.write(content)
md5_hash.update(content)
else:
with tqdm(
with tqdm( # type: ignore
total=int(content_length),
unit_scale=True,
unit_divisor=1024,
Expand Down

0 comments on commit ae248ed

Please sign in to comment.