Skip to content

Commit 6d88bb3

Browse files
committed
Suppress type check for read_csv
1 parent 88e8054 commit 6d88bb3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

shiny/api-examples/input_file/app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ def parsed_file():
2121
file: list[FileInfo] | None = input.file1()
2222
if file is None:
2323
return pd.DataFrame()
24-
return pd.read_csv(file[0]["datapath"])
24+
return pd.read_csv( # pyright: ignore[reportUnknownMemberType]
25+
file[0]["datapath"]
26+
)
2527

2628
@output
2729
@render.table

shiny/examples/input_file/app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ def parsed_file():
2121
file: list[FileInfo] | None = input.file1()
2222
if file is None:
2323
return pd.DataFrame()
24-
return pd.read_csv(file[0]["datapath"])
24+
return pd.read_csv( # pyright: ignore[reportUnknownMemberType]
25+
file[0]["datapath"]
26+
)
2527

2628
@output
2729
@render.table

0 commit comments

Comments
 (0)