Skip to content

python: DataSource.to_polars type hinting #176

Description

@StefanoCretti

The to_polars method of the DataSource class is currently not type hinted. This leads to type checkers complaining as the method is flagged as returning either polars.Series, polars.DataFrame or polars.LazyFrame.

It would be nice to have overloads for the function to avoid the need for assert statements.

I would be down to open a PR and adding them myself if need be.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions