Skip to content

Commit

Permalink
Ignore some tqdm related type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
AnesBenmerzoug committed Dec 11, 2023
1 parent d1aa6ad commit 27a85d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pydvl/value/least_core/naive.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ def lc_prepare_problem(u: Utility, progress: bool = False) -> LeastCoreProblem:

logger.debug("Iterating over all subsets")
utility_values = np.zeros(powerset_size)
for i, subset in enumerate(
for i, subset in enumerate( # type: ignore
tqdm(
powerset(u.data.indices),
display=progress,
disable=not progress,
total=powerset_size - 1,
position=0,
)
Expand Down
2 changes: 1 addition & 1 deletion src/pydvl/value/shapley/naive.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _combinatorial_exact_shapley(
subset: NDArray[np.int_] = np.setxor1d(
u.data.indices, [i], assume_unique=True
).astype(np.int_)
for s in tqdm(
for s in tqdm( # type: ignore
powerset(subset),
disable=not progress,
desc=f"Index {i}",
Expand Down

0 comments on commit 27a85d1

Please sign in to comment.