@@ -144,19 +144,19 @@ def narwhals_to_native_dtype(dtype: IntoDType, version: Version) -> Any: # noqa
144144 return "timedelta64[ns]"
145145 if isinstance_or_issubclass (dtype , dtypes .List ): # pragma: no cover
146146 msg = "Converting to List dtype is not supported yet"
147- return NotImplementedError (msg )
147+ raise NotImplementedError (msg )
148148 if isinstance_or_issubclass (dtype , dtypes .Struct ): # pragma: no cover
149149 msg = "Converting to Struct dtype is not supported yet"
150- return NotImplementedError (msg )
150+ raise NotImplementedError (msg )
151151 if isinstance_or_issubclass (dtype , dtypes .Array ): # pragma: no cover
152152 msg = "Converting to Array dtype is not supported yet"
153- return NotImplementedError (msg )
153+ raise NotImplementedError (msg )
154154 if isinstance_or_issubclass (dtype , dtypes .Time ): # pragma: no cover
155155 msg = "Converting to Time dtype is not supported yet"
156- return NotImplementedError (msg )
156+ raise NotImplementedError (msg )
157157 if isinstance_or_issubclass (dtype , dtypes .Binary ): # pragma: no cover
158158 msg = "Converting to Binary dtype is not supported yet"
159- return NotImplementedError (msg )
159+ raise NotImplementedError (msg )
160160
161161 msg = f"Unknown dtype: { dtype } " # pragma: no cover
162162 raise AssertionError (msg )
0 commit comments