diff --git a/demo_code.py b/demo_code.py index 7aa77bb31..d689c935d 100644 --- a/demo_code.py +++ b/demo_code.py @@ -132,7 +132,7 @@ def wrong_callable(): if __name__ == "__main__": args = ["--disable", "all"] - for i in range(len(args)): - has_truthy = bool(args[i]) + for i, item in enumerate(args): + has_truthy = bool(item) if has_truthy: break