fix shadows name 'k' from outer scope
Linter / ruff (push) Failing after 43s
Linter / eslint (push) Failing after 35s
Tests / tests on CPU with empty model (push) Failing after 40s

while syntactically correct this triggers a false Unresolved reference 'k' error in PyCharms
This commit is contained in:
w-e-w
2024-12-27 22:10:13 +09:00
parent fc54833505
commit dc34c0041c
+1 -1
View File
@@ -335,7 +335,7 @@ class UiSettings:
for method in methods:
method(
fn=lambda value, k=k: self.run_settings_single(value, key=k),
fn=lambda value, key=k: self.run_settings_single(value, key=key),
inputs=[component],
outputs=[component, self.text_settings],
show_progress=info.refresh is not None,