Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Apr 30, 2024
1 parent 06cad29 commit ccafd81
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions narwhals/expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,6 @@ def len() -> Expr:
"""

def func(plx: Any) -> Any:
if (
not hasattr(plx, "_implementation")
and (pl := get_polars()) is not None
and parse_version(pl.__version__) >= parse_version("0.20.4")
):
return plx.len()
if (
not hasattr(plx, "_implementation")
and (pl := get_polars()) is not None
Expand Down

0 comments on commit ccafd81

Please sign in to comment.