Skip to content

Commit

Permalink
Revert "fix shadows name 'k' from outer scope"
Browse files Browse the repository at this point in the history
This reverts commit d5d8b9e.
  • Loading branch information
w-e-w committed Dec 28, 2024
1 parent d5d8b9e commit 1d31bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ui_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def add_functionality(self, demo):

for method in methods:
method(
fn=lambda value, key=k: print(key, value) or self.run_settings_single(value, key=key),
fn=lambda value, k=k: self.run_settings_single(value, key=k),
inputs=[component],
outputs=[component, self.text_settings],
show_progress=info.refresh is not None,
Expand Down

0 comments on commit 1d31bf5

Please sign in to comment.