Skip to content

Commit 5e3be1f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 90ad973 commit 5e3be1f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

narwhals/translate.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -539,17 +539,18 @@ def _from_native_impl( # noqa: C901, PLR0911, PLR0912, PLR0915
539539
discovered_plugins = entry_points(group="narwhals.plugins")
540540

541541
for plugin in discovered_plugins:
542-
543542
obj = plugin.load()
544543
frame = obj.dataframe.DaftLazyFrame
545544

546-
#from obj.dataframe import DaftLazyFrame doesn't work directly!
545+
# from obj.dataframe import DaftLazyFrame doesn't work directly!
547546
try:
548547
df_compliant = frame(native_object, version=Version.MAIN)
549548
return df_compliant.to_narwhals()
550549
# @mp: not sure if correct exception, check. Improve error message
551550
except TypeError as e:
552-
print(f"Cannot read it the dataframe, reason {e}. Currently only supporting daft plugins")
551+
print(
552+
f"Cannot read it the dataframe, reason {e}. Currently only supporting daft plugins"
553+
)
553554
# try the next plugin
554555
continue
555556

0 commit comments

Comments
 (0)