Skip to content
Merged
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
5 changes: 1 addition & 4 deletions pandas/tests/io/test_fsspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@
"dt": date_range("2018-06-18", periods=2),
}
)
# the ignore on the following line accounts for to_csv returning Optional(str)
# in general, but always str in the case we give no filename
# error: Item "None" of "Optional[str]" has no attribute "encode"
text = df1.to_csv(index=False).encode() # type: ignore[union-attr]
text = str(df1.to_csv(index=False)).encode()


@pytest.fixture
Expand Down