Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tests/playwright/shiny/components/chat/shiny_output/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions tests/playwright/shiny/components/data_frame/edit/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading