File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1515 combine_alias_output_names ,
1616 combine_evaluate_output_names ,
1717)
18- from narwhals ._sql .typing import SQLLazyFrameT , NativeSQLExprT
18+ from narwhals ._sql .typing import NativeSQLExprT , SQLLazyFrameT
1919from narwhals ._utils import Implementation , Version , not_implemented
2020
2121if TYPE_CHECKING :
@@ -496,7 +496,8 @@ def round(self, decimals: int) -> Self:
496496 return self ._with_elementwise (
497497 lambda expr : self ._function ("round" , expr , self ._lit (decimals ))
498498 )
499- # WIP: trying new NativeSQLExprT
499+
500+ # WIP: trying new NativeSQLExprT
500501 def sqrt (self ) -> Self :
501502 def _sqrt (expr : NativeSQLExprT ) -> NativeSQLExprT :
502503 return self ._when (
Original file line number Diff line number Diff line change 55from narwhals ._compliant .expr import NativeExpr
66
77if TYPE_CHECKING :
8+ from typing_extensions import Self
9+
810 from narwhals ._sql .dataframe import SQLLazyFrame
911 from narwhals ._sql .expr import SQLExpr
10- from narwhals .dtypes import Boolean
11- from typing_extensions import Self
1212
1313 # TODO: @mp, understand why these are here & if we need one for NativeSQLExprT
1414 SQLExprAny = SQLExpr [Any , Any ]
1818SQLExprT_contra = TypeVar ("SQLExprT_contra" , bound = "SQLExprAny" , contravariant = True )
1919SQLLazyFrameT = TypeVar ("SQLLazyFrameT" , bound = "SQLLazyFrameAny" )
2020# TODO: @mp, should this be contravariant as to do with function arguments? think through!
21- NativeSQLExprT = TypeVar ("NativeSQLExprT" , bound = "NativeSQLExpr" )
21+ NativeSQLExprT = TypeVar ("NativeSQLExprT" , bound = "NativeSQLExpr" )
22+
2223
2324class NativeSQLExpr (NativeExpr ):
24- # both Self because we're comparing an expression with an expression?
25+ # both Self because we're comparing an expression with an expression?
2526 def __gt__ (self , value : Self ) -> Self : ...
2627
2728 def __lt__ (self , value : Self ) -> Self : ...
You can’t perform that action at this time.
0 commit comments