Skip to content

Commit 52650ce

Browse files
golorodenclaude
andcommitted
fix: add type ignore for pandas DataFrame columns parameter
Add type: ignore annotation for the columns parameter when creating an empty DataFrame, as pyright's pandas stubs don't recognize list[str] as a valid type despite it working correctly at runtime. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 92ede47 commit 52650ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eventsourcingdb/pandas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async def events_to_dataframe(events: AsyncGenerator[Event, None]) -> pd.DataFra
4141
event_list.append(event_dict)
4242

4343
if len(event_list) == 0:
44-
return pd.DataFrame(
44+
return pd.DataFrame( # type: ignore[call-overload]
4545
columns=[
4646
"event_id",
4747
"time",

0 commit comments

Comments
 (0)