Skip to content

Commit 91f70df

Browse files
committed
docs: Add doc to FromNative._is_native
Related (#2393 (comment))
1 parent cf0ecf9 commit 91f70df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

narwhals/_translate.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,4 +218,6 @@ class FromNative(Protocol[FromNativeT]):
218218
@classmethod
219219
def from_native(cls, data: FromNativeT, *args: Any, **kwds: Any) -> Self: ...
220220
@staticmethod
221-
def _is_native(obj: FromNativeT | Any, /) -> TypeIs[FromNativeT]: ...
221+
def _is_native(obj: FromNativeT | Any, /) -> TypeIs[FromNativeT]:
222+
"""Return `True` if `obj` can be passed to `from_native`."""
223+
...

0 commit comments

Comments
 (0)