File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -500,7 +500,7 @@ def round(self, decimals: int) -> Self:
500500 def sqrt (self ) -> Self :
501501 def _sqrt (expr : NativeSQLExprT ) -> NativeSQLExprT :
502502 return self ._when (
503- expr < self ._lit (0 ),
503+ expr < self ._lit (0 ), # type: ignore[operator]
504504 self ._lit (float ("nan" )),
505505 self ._function ("sqrt" , expr ),
506506 )
Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3- from typing import TYPE_CHECKING , Any , TypeVar , Self
3+ from typing import TYPE_CHECKING , Any , TypeVar
44
55from narwhals ._compliant .expr import NativeExpr
66
77if TYPE_CHECKING :
88 from narwhals ._sql .dataframe import SQLLazyFrame
99 from narwhals ._sql .expr import SQLExpr
1010 from narwhals .dtypes import Boolean
11+ from typing_extensions import Self
1112
1213 # TODO: @mp, understand why these are here & if we need one for NativeSQLExprT
1314 SQLExprAny = SQLExpr [Any , Any ]
You can’t perform that action at this time.
0 commit comments