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.

The
to_polarsmethod of theDataSourceclass is currently not type hinted. This leads to type checkers complaining as the method is flagged as returning eitherpolars.Series,polars.DataFrameorpolars.LazyFrame.It would be nice to have overloads for the function to avoid the need for
assertstatements.I would be down to open a PR and adding them myself if need be.