-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
annotate.py: Add
fan_out
parameter to Bug.from_dataset()
Like the previous commit, this feature would be useful in implementing support for the '--use-fanout' parameter, but this time for a different subcommand, namely 'diff-annotate dataset'. The file used for the new test is a test file from a different test, just in different directory, and with different pathname and name.
- Loading branch information
Showing
3 changed files
with
76 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
tests/test_dataset_fanout/tqdm-1/c0/dcf39b046d1b4ff6de14ac99ad9a1b10487512.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/tqdm/contrib/__init__.py b/tqdm/contrib/__init__.py | ||
index 1dddacf..935ab63 100644 | ||
--- a/tqdm/contrib/__init__.py | ||
+++ b/tqdm/contrib/__init__.py | ||
@@ -38,7 +38,7 @@ def tenumerate(iterable, start=0, total=None, tqdm_class=tqdm_auto, | ||
if isinstance(iterable, np.ndarray): | ||
return tqdm_class(np.ndenumerate(iterable), | ||
total=total or len(iterable), **tqdm_kwargs) | ||
- return enumerate(tqdm_class(iterable, start, **tqdm_kwargs)) | ||
+ return enumerate(tqdm_class(iterable, **tqdm_kwargs), start) | ||
|
||
|
||
def _tzip(iter1, *iter2plus, **tqdm_kwargs): |