Skip to content

Commit 8e51c98

Browse files
style: fix polars typing issue and white space in docstrings
1 parent 469bc04 commit 8e51c98

File tree

1 file changed

+3
-3
lines changed
  • src/dve/core_engine/backends/implementations/duckdb/readers

1 file changed

+3
-3
lines changed

src/dve/core_engine/backends/implementations/duckdb/readers/csv.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def read_to_relation( # pylint: disable=unused-argument
100100

101101
# there is a raise_if_empty arg for 0.18+. Future reference when upgrading. Makes L85
102102
# redundant
103-
df = pl.scan_csv(resource, **reader_options).select(list(polars_types.keys())) # pylint: disable=W0612
103+
df = pl.scan_csv(resource, **reader_options).select(list(polars_types.keys())) # type: ignore # pylint: disable=W0612
104104

105105
return ddb.sql("SELECT * FROM df")
106106

@@ -119,8 +119,8 @@ class DuckDBCSVRepeatingHeaderReader(PolarsToDuckDBCSVReader):
119119
| shop 1 | clothes | 2025-01-01 | jeans | 20.39 |
120120
| shop 1 | clothes | 2025-01-01 | shirt | 14.99 |
121121
122-
This reader will just pull out the distinct values from the header column. Where there are
123-
more/less than one distinct value per column, the reader will produce a
122+
This reader will just pull out the distinct values from the header column. Where there are
123+
more/less than one distinct value per column, the reader will produce a
124124
`NonDistinctHeaderError`.
125125
126126
So using the example above, the expected entity would look like this...

0 commit comments

Comments
 (0)