Skip to content

Commit cb6f5a3

Browse files
committed
fix: ruff format codegen_tab.py and openapi_tab.py
1 parent cb5ac8e commit cb6f5a3

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎pypproxy/ui/codegen_tab.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ def build_codegen_tab(store: Store) -> dict:
3434
copy_btn = ui.button("Copy", icon="content_copy").props("flat size=sm")
3535
copy_btn.on(
3636
"click",
37-
lambda: ui.run_javascript(f"navigator.clipboard.writeText({code_area.value!r})")
38-
or ui.notify("Copied!", type="positive"),
37+
lambda: (
38+
ui.run_javascript(f"navigator.clipboard.writeText({code_area.value!r})")
39+
or ui.notify("Copied!", type="positive")
40+
),
3941
)
4042

4143
def _generate() -> None:

‎pypproxy/ui/openapi_tab.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ def build_openapi_tab(store: Store) -> None:
4747
copy_btn = ui.button("Copy", icon="content_copy").props("flat size=sm")
4848
copy_btn.on(
4949
"click",
50-
lambda: ui.run_javascript(f"navigator.clipboard.writeText({spec_area.value!r})")
51-
or ui.notify("Copied!", type="positive"),
50+
lambda: (
51+
ui.run_javascript(f"navigator.clipboard.writeText({spec_area.value!r})")
52+
or ui.notify("Copied!", type="positive")
53+
),
5254
)
5355

5456
def _generate() -> None:

0 commit comments

Comments
 (0)