Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies = [
"anyio>=3.5.0, <5",
"distro>=1.7.0, <2",
"sniffio",
"tqdm > 4",
"tqdm>=4.67.1",
"jiter>=0.10.0, <1",
]

Expand Down Expand Up @@ -68,7 +68,7 @@ dev-dependencies = [
"rich>=13.7.1",
"inline-snapshot>=0.28.0",
"azure-identity >=1.14.1",
"types-tqdm > 4",
"types-tqdm>=4.67.1",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep types-tqdm constraint compatible with lockfile

Raising types-tqdm to >=4.67.1 makes pyproject.toml inconsistent with the checked-in requirements-dev.lock, which currently pins types-tqdm==4.67.0.20250809 (a lower version). This introduces an immediate dependency-set mismatch for workflows that validate or regenerate locks (for example the documented rye sync --all-features flow), so this bound should be relaxed or the lock updated in the same change.

Useful? React with 👍 / 👎.

"types-pyaudio > 0",
"trio >=0.22.2",
"nest_asyncio==1.6.0",
Expand Down
5 changes: 3 additions & 2 deletions src/openai/cli/_progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@ def read(self, n: int | None = -1) -> bytes:


def progress(total: float, desc: str | None) -> Callable[[float], None]:
import tqdm
from tqdm import tqdm

meter = tqdm.tqdm(total=total, unit_scale=True, desc=desc)
meter = tqdm(total=total, unit_scale=True, unit="B", desc=desc)

def incr(progress: float) -> None:
meter.n = progress
if progress == total:
meter.refresh()
meter.close()
else:
meter.refresh()
Expand Down