diff --git a/tests/playwright/shiny/components/chat/shiny_output/app.py b/tests/playwright/shiny/components/chat/shiny_output/app.py index 0fe8b8f3a..b9284109c 100644 --- a/tests/playwright/shiny/components/chat/shiny_output/app.py +++ b/tests/playwright/shiny/components/chat/shiny_output/app.py @@ -55,9 +55,11 @@ async def _(): with ui.hold() as plot_ui: @render_plotly - def plot(): + def plot(): # pyright: ignore[reportUnknownReturnType,reportUnknownParameterType] dat = pd.DataFrame({"x": [1, 2, 3], "y": [4, 5, 6]}) - return px.scatter(dat, x="x", y="y") # pyright: ignore[reportUnknownMemberType] + return px.scatter( # pyright: ignore[reportUnknownMemberType,reportUnknownVariableType] + dat, x="x", y="y" + ) @reactive.effect diff --git a/tests/playwright/shiny/components/data_frame/edit/app.py b/tests/playwright/shiny/components/data_frame/edit/app.py index 2f8707e39..c0b5a9549 100644 --- a/tests/playwright/shiny/components/data_frame/edit/app.py +++ b/tests/playwright/shiny/components/data_frame/edit/app.py @@ -261,14 +261,13 @@ def df_styles_fn(data: pd.DataFrame) -> list[StyleInfo]: # print(summary_data._type_hints()) from shinywidgets import render_widget - # from shiny import reactive - @render_widget - def country_detail_pop(): + def country_detail_pop(): # pyright: ignore[reportUnknownParameterType] import plotly.express as px + # Create the figure explicitly return px.line( - px.data.gapminder(), + px.data.gapminder(), # pyright: ignore[reportUnknownVariableType,reportAttributeAccessIssue] x="year", y="lifeExp", color="country", diff --git a/tests/playwright/shiny/components/data_frame/html_columns/app.py b/tests/playwright/shiny/components/data_frame/html_columns/app.py index 45f5f8dbc..d6764e31d 100644 --- a/tests/playwright/shiny/components/data_frame/html_columns/app.py +++ b/tests/playwright/shiny/components/data_frame/html_columns/app.py @@ -33,10 +33,10 @@ def random_generator(): ) ) -studyName = ( - pd_penguins["studyName"] # pyright: ignore[reportUnknownVariableType] +studyName = ( # pyright: ignore[reportUnknownVariableType] + pd_penguins["studyName"] .copy() - .astype("object") + .astype("object") # pyright: ignore[reportUnknownMemberType] ) # Set the first value of the column to an html object so the column is treated as object by narwhals (not str) studyName[0] = htmlDep