'Refactored by Sourcery'

This commit is contained in:
Sourcery AI 2021-09-19 15:33:55 +00:00
parent 058fe72d56
commit 9ee1c0bdcb
2 changed files with 2 additions and 4 deletions

View File

@ -13,8 +13,7 @@ class NoLenIter(object):
self._it = iterable
def __iter__(self):
for i in self._it:
yield i
yield from self._it
def test_product():

View File

@ -1165,8 +1165,7 @@ class tqdm(Comparable):
# If the bar is disabled, then just walk the iterable
# (note: keep this check outside the loop for performance)
if self.disable:
for obj in iterable:
yield obj
yield from iterable
return
mininterval = self.mininterval