Skip to content

Commit 319b3d6

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ca01346 commit 319b3d6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

narwhals/translate.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import annotations
22

33
import datetime as dt
4-
import sys
54
from decimal import Decimal
65
from functools import wraps
76
from typing import TYPE_CHECKING, Any, Callable, Literal, TypeVar, overload
@@ -540,19 +539,16 @@ def _from_native_impl( # noqa: C901, PLR0911, PLR0912, PLR0915
540539
discovered_plugins = entry_points(group="narwhals.plugins")
541540

542541
for plugin in discovered_plugins:
543-
544542
obj = plugin.load()
545543
frame = obj.dataframe.DaftLazyFrame
546544

547-
#from obj.dataframe import DaftLazyFrame
545+
# from obj.dataframe import DaftLazyFrame
548546
try:
549547
df_compliant = frame(native_object, version=Version.MAIN)
550548
return df_compliant.to_narwhals()
551549
except:
552550
# try the next plugin
553551
continue
554-
555-
556552

557553
"""
558554
TODO @mp: need logic to go over all the entry points found, and if daft found,

0 commit comments

Comments
 (0)