Skip to content

Commit 0ffbada

Browse files
committed
Fix lint check
1 parent 2e3fbf6 commit 0ffbada

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg-py/tests/playwright/chat/shiny_output/app.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
import plotly.express as px # pyright: ignore[reportMissingTypeStubs]
44
from shiny import reactive, render
55
from shiny.express import ui
6-
from shinywidgets import render_plotly, render_widget
7-
86
from shinychat.express import Chat
7+
from shinywidgets import render_plotly, render_widget
98

109
ui.page_opts(
1110
title="Hello output bindings in Chat",
@@ -22,7 +21,7 @@ def map():
2221

2322
chat = Chat(id="chat")
2423

25-
chat.ui(messages=[map_ui]) # type: ignore[reportArgumentType]
24+
chat.ui(messages=[map_ui])
2625

2726
with ui.hold() as df_1:
2827

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ ignore = [
140140
"A001", # Variable shadowing Python builtin, e.g. `input`
141141
"A002", # Argument shadowing Python builtin, e.g. `id`
142142
"A004", # Import shadowing Python builtin, e.g. `input`
143-
"E501"
143+
"E501",
144+
"PLC0415", # Import outside top-level
144145
]
145146

146147
# Allow fix for all enabled rules (when `--fix`) is provided.

0 commit comments

Comments
 (0)