Update test_demo/demo_flaws.py #30

Merged
dangzerong merged 1 commits from dingshuo-patch-6 into main 2026-03-26 11:19:42 +08:00
Showing only changes of commit 590ccf8093 - Show all commits

View File

@@ -19,10 +19,10 @@ import collections as col # 使用了 col 但 flake8 可能检测
# 缺陷2: 未使用的变量
def unused_variable_demo():
"""演示未使用的变量"""
result = calculate() # result 未被使用
print("Function executed")
# def unused_variable_demo():
# """演示未使用的变量"""
# result = calculate() # result 未被使用
# print("Function executed")
# 缺陷8: 行太长(风格问题)