Skip to content

Commit

Permalink
fix shadows name 'k' from outer scope
Browse files Browse the repository at this point in the history
while syntactically correct this triggers a false Unresolved reference 'k' error in PyCharms
  • Loading branch information
w-e-w committed Dec 28, 2024
1 parent 6623351 commit 78c73fa
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 @@ -334,7 +334,7 @@ def add_functionality(self, demo):

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

0 comments on commit 78c73fa

Please sign in to comment.