177
178def consume(iterable: t.Iterable[t.Any]) -> None:
179 """Consumes an iterable without doing anything with it."""
180 for _ in iterable:181 pass
182
183
In most cases, an empty body of for
, while
or if
implies some piece of code is missing.
Such empty block must be either filled or removed.
for i in range(10):
pass
for i in range(10):
print(i)