Skip to content

Commit a4e7d13

Browse files
isra17ilevkivskyi
authored andcommitted
Type asc/desc operators (#122)
1 parent 46008db commit a4e7d13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sqlalchemy-stubs/sql/operators.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Any, Optional, Text, List, Union
22
from .selectable import Select as Select
3-
from .elements import BindParameter as BindParameter
3+
from .elements import BindParameter as BindParameter, UnaryExpression
44

55
class Operators(object):
66
def __and__(self, other): ...
@@ -52,8 +52,8 @@ class ColumnOperators(Operators):
5252
def endswith(self, other, **kwargs): ...
5353
def contains(self, other, **kwargs): ...
5454
def match(self, other, **kwargs): ...
55-
def desc(self): ...
56-
def asc(self): ...
55+
def desc(self) -> UnaryExpression: ...
56+
def asc(self) -> UnaryExpression: ...
5757
def nullsfirst(self): ...
5858
def nullslast(self): ...
5959
def collate(self, collation): ...

0 commit comments

Comments
 (0)