Closed
Description
You are right, the example doesn't work, my bad. This example does work though, and the same question still applies.
data: pd.DataFrame | pd.Series = pd.Series()
pd.concat([pd.DataFrame(), data])
returns
error: List item 0 has incompatible type "DataFrame"; expected "None" [list-item]
error: List item 1 has incompatible type "DataFrame | Series[Any]"; expected "None" [list-item]
Originally posted by @tvdboom in #878 (comment)