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 678b961 commit 31737e2Copy full SHA for 31737e2
pandas_dataclasses/core/api.py
@@ -251,7 +251,7 @@ def ensure(data: Any, dtype: Optional[str]) -> Any:
251
data = [data]
252
253
if isinstance(data, (pd.Index, pd.Series)):
254
- return type(data)(data, dtype=dtype, copy=False)
+ return type(data)(data, dtype=dtype, copy=False) # type: ignore
255
else:
256
return pd.array(data, dtype=dtype, copy=False)
257
0 commit comments