-
-
Notifications
You must be signed in to change notification settings - Fork 373
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Code Sample, a copy-pastable example
import pandera as pa
import pandera.typing as pdt
class MySchema(pa.DataFrameModel):
int32: pdt.Series[list[pdt.Int32]] = pa.Field()Run mypy and get the following error:
error: Type argument "list[Int32]" of "Series" must be a subtype of "bool | int | str | float | ExtensionDtype | Bool | Date | Timestamp | Decimal | Timedelta | Category | Float | Float16 | Float32 | Float64 | Int | Int8 | Int16 | Int32 | Int64 | UInt8 | UInt16 | UInt32 | UInt64 | INT8 | INT16 | INT32 | INT64 | UINT8 | UINT16 | UINT32 | UINT64 | Object | String | STRING | Geometry" [type-var]Expected behavior
The type checking should not fail.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working