Skip to content

Commit d876703

Browse files
committed
chore(typing): fix not covered by ignore
1 parent 0a2d1fe commit d876703

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

narwhals/_duckdb/expr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def var(self: Self, ddof: int) -> Self:
403403
def _var(_input: duckdb.Expression) -> duckdb.Expression:
404404
n_samples = FunctionExpression("count", _input)
405405
# NOTE: Not implemented Error: Unable to transform python value of type '<class 'duckdb.duckdb.Expression'>' to DuckDB LogicalType
406-
return FunctionExpression("var_pop", _input) * n_samples / (n_samples - ddof) # type: ignore[operator]
406+
return FunctionExpression("var_pop", _input) * n_samples / (n_samples - ddof) # type: ignore[operator, no-any-return]
407407

408408
return self._from_call(_var, "var")
409409

narwhals/_expression_parsing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,10 @@ def extract_compliant(
296296
if isinstance(other, str) and not str_as_lit:
297297
return plx.col(other)
298298
if is_narwhals_series(other):
299-
return plx._create_expr_from_series(other._compliant_series) # type: ignore[attr-defined]
299+
return plx._create_expr_from_series(other._compliant_series) # type: ignore[attr-defined, no-any-return]
300300
if is_numpy_array(other):
301301
series = plx._create_compliant_series(other) # type: ignore[attr-defined]
302-
return plx._create_expr_from_series(series) # type: ignore[attr-defined]
302+
return plx._create_expr_from_series(series) # type: ignore[attr-defined, no-any-return]
303303
return other
304304

305305

0 commit comments

Comments
 (0)