Skip to content

Commit f68c4ea

Browse files
committed
fix typing
1 parent 816ca8b commit f68c4ea

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

intbot/core/analysis/products.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,14 @@ def flat_product_data(products: list[Product]) -> pl.DataFrame:
106106
)
107107
)
108108

109-
schema = {
110-
"product_id": pl.Int64,
111-
"variation_id": pl.Int64,
112-
"product_name": pl.String,
113-
"type": pl.String,
114-
"variant": pl.String,
109+
schema = pl.Schema({
110+
"product_id": pl.Int64(),
111+
"variation_id": pl.Int64(),
112+
"product_name": pl.String(),
113+
"type": pl.String(),
114+
"variant": pl.String(),
115115
"price": pl.Decimal(precision=10, scale=2),
116-
}
116+
})
117117
return pl.DataFrame(rows, schema=schema)
118118

119119

0 commit comments

Comments
 (0)