We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 850edc8 commit e35bfd5Copy full SHA for e35bfd5
pandas/tests/io/test_fsspec.py
@@ -24,10 +24,7 @@
24
"dt": date_range("2018-06-18", periods=2),
25
}
26
)
27
-# the ignore on the following line accounts for to_csv returning Optional(str)
28
-# in general, but always str in the case we give no filename
29
-# error: Item "None" of "Optional[str]" has no attribute "encode"
30
-text = df1.to_csv(index=False).encode() # type: ignore[union-attr]
+text = str(df1.to_csv(index=False)).encode()
31
32
33
@pytest.fixture
0 commit comments