mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui
synced 2025-01-07 07:46:58 +08:00
fix shadows name 'k' from outer scope
while syntactically correct this triggers a false Unresolved reference 'k' error in PyCharms
This commit is contained in:
parent
fc54833505
commit
dc34c0041c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user