From b937b5f9e357bc24693bf0a4ffe7e8e469caac8a Mon Sep 17 00:00:00 2001 From: Marco Gorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Tue, 13 Aug 2024 19:21:38 +0100 Subject: [PATCH] fixup --- narwhals/dataframe.py | 2 +- narwhals/series.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/narwhals/dataframe.py b/narwhals/dataframe.py index 4105ae365..f1c0c5bba 100644 --- a/narwhals/dataframe.py +++ b/narwhals/dataframe.py @@ -263,7 +263,7 @@ def __arrow_c_stream__(self, requested_schema: object | None = None) -> object: if hasattr(native_frame, "__arrow_c_stream__"): return native_frame.__arrow_c_stream__(requested_schema=requested_schema) try: - import pyarrow as pa + import pyarrow as pa # ignore-banned-import except ModuleNotFoundError as exc: # pragma: no cover msg = f"PyArrow>=14.0.0 is required for `__arrow_c_stream__` for object of type {type(native_frame)}" raise ModuleNotFoundError(msg) from exc diff --git a/narwhals/series.py b/narwhals/series.py index 66cc8801b..bbe2bfb3d 100644 --- a/narwhals/series.py +++ b/narwhals/series.py @@ -74,7 +74,7 @@ def __arrow_c_stream__(self, requested_schema: object | None = None) -> object: if hasattr(native_series, "__arrow_c_stream__"): return native_series.__arrow_c_stream__(requested_schema=requested_schema) try: - import pyarrow as pa + import pyarrow as pa # ignore-banned-import except ModuleNotFoundError as exc: # pragma: no cover msg = f"PyArrow>=14.0.0 is required for `__arrow_c_stream__` for object of type {type(native_series)}" raise ModuleNotFoundError(msg) from exc