diff --git a/narwhals/_polars/utils.py b/narwhals/_polars/utils.py index 279ff6ae85..a70df53168 100644 --- a/narwhals/_polars/utils.py +++ b/narwhals/_polars/utils.py @@ -104,7 +104,7 @@ def native_to_narwhals_dtype( # noqa: C901, PLR0912 return dtypes.Int16() if dtype == pl.Int8: return dtypes.Int8() - if hasattr(pl, "UInt128") and dtype == pl.UInt128: # pragma: no cover + if hasattr(pl, "UInt128") and dtype == pl.UInt128: # pyright: ignore[reportAttributeAccessIssue] # pragma: no cover # Not available for Polars pre 1.8.0 return dtypes.UInt128() if dtype == pl.UInt64: