Skip to content

pa.Column mypy typing should accept pl.Decimal #2152

@gregtesseract

Description

@gregtesseract

Describe the bug
As title.

  • I have checked that this issue has not already been reported.
  • I have confirmed this bug exists on the latest version of pandera.
  • (optional) I have confirmed this bug exists on the main branch of pandera.

Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.

Code Sample, a copy-pastable example

import pandera.polars as pa
import polars as pl

pa.Column(pl.Decimal(precision=38, scale=6))

Expected behavior

Mypy to pass, but instead, gives:

Argument 1 to "Column" has incompatible type "Decimal"; expected "str | type | DataTypeClass | None"Mypy[arg-type]

Desktop (please complete the following information):

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions