Cleanup: quiet Python warnings from ruff

This commit is contained in:
Campbell Barton
2024-10-27 22:35:58 +11:00
parent f3ae90ec96
commit 1cf7781596
11 changed files with 35 additions and 28 deletions

View File

@@ -33,8 +33,11 @@ class _TempModuleOverride:
def add_scrollback(text, text_type):
for l in text.split("\n"):
bpy.ops.console.scrollback_append(text=l, type=text_type)
for line in text.split("\n"):
bpy.ops.console.scrollback_append(
text=line,
type=text_type,
)
def replace_help(namespace):