Skip to content

Commit ec5f496

Browse files
authored
chore(typing): Add CompliantNamespace.from_native (#3114)
* chore(typing): Add `CompliantNamespace.from_native` Closes #3113 * docs(typing): Add note on `Any` usage
1 parent 449cba2 commit ec5f496

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

narwhals/_compliant/namespace.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ def concat_str(
113113
@property
114114
def selectors(self) -> CompliantSelectorNamespace[Any, Any]: ...
115115
def coalesce(self, *exprs: CompliantExprT) -> CompliantExprT: ...
116+
# NOTE: typing this accurately requires 2x more `TypeVar`s
117+
def from_native(self, data: Any, /) -> Any: ...
116118

117119

118120
class DepthTrackingNamespace(

0 commit comments

Comments
 (0)