Skip to content

Commit 94699b9

Browse files
committed
revert: partial undo (7198e95)
Seems to not interact well with `.collect()`? #2223 (comment)
1 parent 7198e95 commit 94699b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

narwhals/_compliant/expr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def _reuse_series_extra_kwargs(
393393

394394
@classmethod
395395
def _is_expr(cls, obj: Self | Any) -> TypeIs[Self]:
396-
return isinstance(obj, cls)
396+
return hasattr(obj, "__narwhals_expr__")
397397

398398
def _reuse_series_inner(
399399
self,

0 commit comments

Comments
 (0)