Skip to content

Commit 330fdd0

Browse files
committed
wip
1 parent a52a6bb commit 330fdd0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

narwhals/translate.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from decimal import Decimal
66
from functools import wraps
77
from typing import TYPE_CHECKING, Any, Callable, Literal, TypeVar, overload
8+
import contextlib
89

910
from narwhals._constants import EPOCH, MS_PER_SECOND
1011
from narwhals._namespace import (
@@ -358,10 +359,8 @@ def _from_native_impl( # noqa: C901, PLR0911, PLR0912, PLR0915
358359

359360
for plugin in discovered_plugins: # pragma: no cover
360361
obj = plugin.load()
361-
if obj.is_native_object(native_object):
362-
native_object = obj.from_native(
363-
native_object, eager_only=False, series_only=False
364-
)
362+
with contextlib.suppress(TypeError):
363+
native_object = obj.from_native(native_object)
365364
break
366365

367366
# Extensions

0 commit comments

Comments
 (0)