Skip to content

Commit fa686f2

Browse files
committed
maxi speichers changes adapted to new structure
1 parent e7744e5 commit fa686f2

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

Diff for: sqlmodel/sql/_expression_select_gen.py

+15
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
from sqlalchemy import (
1717
Column,
18+
Label,
1819
)
1920
from sqlalchemy.sql.elements import (
2021
SQLCoreOperations,
@@ -40,6 +41,7 @@
4041
Column, # type: ignore
4142
Sequence, # type: ignore
4243
Mapping, # type: ignore
44+
Label, # type: ignore
4345
UUID,
4446
datetime,
4547
float,
@@ -58,6 +60,7 @@
5860
Column, # type: ignore
5961
Sequence, # type: ignore
6062
Mapping, # type: ignore
63+
Label, # type: ignore
6164
UUID,
6265
datetime,
6366
float,
@@ -76,6 +79,7 @@
7679
Column, # type: ignore
7780
Sequence, # type: ignore
7881
Mapping, # type: ignore
82+
Label, # type: ignore
7983
UUID,
8084
datetime,
8185
float,
@@ -94,6 +98,7 @@
9498
Column, # type: ignore
9599
Sequence, # type: ignore
96100
Mapping, # type: ignore
101+
Label, # type: ignore
97102
UUID,
98103
datetime,
99104
float,
@@ -119,6 +124,16 @@ def select(__ent0: _TScalar_0) -> SelectOfScalar[_TScalar_0]: # type: ignore
119124
...
120125

121126

127+
@overload
128+
def select(*entities: _TCCA[_T0]) -> Select[Tuple[_T0, ...]]: # type: ignore
129+
...
130+
131+
132+
@overload
133+
def select(*entities: _TScalar_0) -> Select[Tuple[_TScalar_0, ...]]: # type: ignore
134+
...
135+
136+
122137
# Generated overloads start
123138

124139

Diff for: sqlmodel/sql/_expression_select_gen.py.jinja2

+12
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ from uuid import UUID
1313

1414
from sqlalchemy import (
1515
Column,
16+
Label,
1617
)
1718
from sqlalchemy.sql.elements import (
1819
SQLCoreOperations,
@@ -39,6 +40,7 @@ _TScalar_{{ i }} = TypeVar(
3940
Column, # type: ignore
4041
Sequence, # type: ignore
4142
Mapping, # type: ignore
43+
Label, # type: ignore
4244
UUID,
4345
datetime,
4446
float,
@@ -64,6 +66,16 @@ def select(__ent0: _TScalar_0) -> SelectOfScalar[_TScalar_0]: # type: ignore
6466
...
6567

6668

69+
@overload
70+
def select(*entities: _TCCA[_T0]) -> Select[Tuple[_T0, ...]]: # type: ignore
71+
...
72+
73+
74+
@overload
75+
def select(*entities: _TScalar_0) -> Select[Tuple[_TScalar_0, ...]]: # type: ignore
76+
...
77+
78+
6779
# Generated overloads start
6880

6981
{% for signature in signatures %}

0 commit comments

Comments
 (0)