Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Jan 14, 2025
1 parent ec59fff commit 15afddf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions narwhals/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -3629,9 +3629,8 @@ def _extract_compliant(self, arg: Any) -> Any:
from narwhals.expr import Expr
from narwhals.series import Series

if isinstance(arg, BaseFrame): # pragma: no cover
msg = "Binary operations between LazyFrames are not supported"
raise TypeError(msg)
if isinstance(arg, BaseFrame):
return arg._compliant_frame
if isinstance(arg, Series): # pragma: no cover
msg = "Binary operations between Series and LazyFrame are not supported."
raise TypeError(msg)
Expand Down

0 comments on commit 15afddf

Please sign in to comment.