Body doesn't contain any code
113
114
115def bad_isinstance(initial_condition, object, other_obj, foo, bar, baz):
116 if (117 initial_condition
118 and (
119 isinstance(object, int)
Description
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.
Bad practice
for i in range(10):
pass
Preferred:
for i in range(10):
print(i)