Skip to content

Commit 31737e2

Browse files
committed
#167 Ignore undesirable mypy error
See also: pandas-dev/pandas-stubs#571
1 parent 678b961 commit 31737e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas_dataclasses/core/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def ensure(data: Any, dtype: Optional[str]) -> Any:
251251
data = [data]
252252

253253
if isinstance(data, (pd.Index, pd.Series)):
254-
return type(data)(data, dtype=dtype, copy=False)
254+
return type(data)(data, dtype=dtype, copy=False) # type: ignore
255255
else:
256256
return pd.array(data, dtype=dtype, copy=False)
257257

0 commit comments

Comments
 (0)