Skip to content

Commit 7d3addc

Browse files
committed
docs: NativeExpr
1 parent c368a60 commit 7d3addc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

narwhals/_compliant/expr.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,13 @@
6262
__all__ = ["CompliantExpr", "EagerExpr", "LazyExpr", "NativeExpr"]
6363

6464

65-
# NOTE: Only common methods for lazy expr-like objects
6665
class NativeExpr(Protocol):
66+
"""An `Expr`-like object from a package with [Lazy-only support](https://narwhals-dev.github.io/narwhals/extending/#levels-of-support).
67+
68+
Protocol members are chosen *purely* for matching statically - as they
69+
are common to all currently supported packages.
70+
"""
71+
6772
def between(self, *args: Any, **kwds: Any) -> Any: ...
6873
def isin(self, *args: Any, **kwds: Any) -> Any: ...
6974

0 commit comments

Comments
 (0)