From a2d0c538c6cbf2fa5bb852d6cc4f57efe205bfa0 Mon Sep 17 00:00:00 2001 From: Marco Gorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Fri, 25 Oct 2024 16:30:45 +0100 Subject: [PATCH] coverage --- narwhals/_pandas_like/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/narwhals/_pandas_like/utils.py b/narwhals/_pandas_like/utils.py index df1d404c1..03e3767d3 100644 --- a/narwhals/_pandas_like/utils.py +++ b/narwhals/_pandas_like/utils.py @@ -297,11 +297,13 @@ def native_to_narwhals_dtype( ) except Exception: # noqa: BLE001, S110 pass + else: # pragma: no cover + pass if implementation is Implementation.DASK: # Dask columns are lazy, so we can't inspect values. # The most useful assumption is probably String return dtypes.String() - if implementation is Implementation.PANDAS: + if implementation is Implementation.PANDAS: # pragma: no cover # Old versions of pandas pre-dataframe-interchange-protocol import pandas as pd # ignore-banned-import