Commit b60293f
π Handles incomplete list-type (#385)
* π Handles incomplete list-type
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* βοΈ Removed old-style `typing.List` in favour of just list.
Also fixed the pre-commit
* π§Ή Simplified getting column-type. No more recursive func
* βοΈ Got rid of the `cast` by using isinstance
* βοΈ Removed .swp files. OOps
* π§Ή Added `get_type_qualifiers` function
* Added a blank line after a control block.
Co-authored-by: Alex GrΓΆnholm <[email protected]>
* Update tests/test_generator_declarative.py
* π§Ή Renamed function
* Formatting/style fixes
* Reverted rename
* π Updated CHANGES.rst
* π Tweaked CHANGES comment following feedback
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex GrΓΆnholm <[email protected]>1 parent 41d1469 commit b60293f
File tree
5 files changed
+109
-79
lines changed- src/sqlacodegen
- tests
5 files changed
+109
-79
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
4 | 9 | | |
5 | 10 | | |
6 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | 67 | | |
72 | 68 | | |
73 | 69 | | |
| |||
1201 | 1197 | | |
1202 | 1198 | | |
1203 | 1199 | | |
1204 | | - | |
1205 | | - | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
1206 | 1220 | | |
1207 | | - | |
1208 | | - | |
1209 | | - | |
1210 | | - | |
1211 | | - | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
1212 | 1226 | | |
1213 | | - | |
1214 | | - | |
1215 | | - | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
1216 | 1231 | | |
1217 | | - | |
1218 | | - | |
1219 | | - | |
| 1232 | + | |
| 1233 | + | |
1220 | 1234 | | |
1221 | 1235 | | |
1222 | 1236 | | |
| |||
1297 | 1311 | | |
1298 | 1312 | | |
1299 | 1313 | | |
1300 | | - | |
1301 | | - | |
| 1314 | + | |
1302 | 1315 | | |
1303 | 1316 | | |
1304 | 1317 | | |
| |||
1310 | 1323 | | |
1311 | 1324 | | |
1312 | 1325 | | |
1313 | | - | |
1314 | | - | |
| 1326 | + | |
1315 | 1327 | | |
1316 | 1328 | | |
1317 | 1329 | | |
| |||
1409 | 1421 | | |
1410 | 1422 | | |
1411 | 1423 | | |
1412 | | - | |
1413 | | - | |
1414 | | - | |
1415 | | - | |
1416 | | - | |
1417 | | - | |
1418 | | - | |
1419 | 1424 | | |
1420 | 1425 | | |
1421 | 1426 | | |
| |||
1487 | 1492 | | |
1488 | 1493 | | |
1489 | 1494 | | |
1490 | | - | |
1491 | | - | |
| 1495 | + | |
1492 | 1496 | | |
1493 | 1497 | | |
1494 | 1498 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
157 | 155 | | |
158 | 156 | | |
159 | 157 | | |
| |||
167 | 165 | | |
168 | 166 | | |
169 | 167 | | |
170 | | - | |
| 168 | + | |
171 | 169 | | |
172 | 170 | | |
173 | 171 | | |
| |||
176 | 174 | | |
177 | 175 | | |
178 | 176 | | |
179 | | - | |
| 177 | + | |
180 | 178 | | |
181 | 179 | | |
182 | 180 | | |
| |||
208 | 206 | | |
209 | 207 | | |
210 | 208 | | |
211 | | - | |
| 209 | + | |
212 | 210 | | |
213 | 211 | | |
214 | 212 | | |
| |||
223 | 221 | | |
224 | 222 | | |
225 | 223 | | |
226 | | - | |
| 224 | + | |
227 | 225 | | |
228 | 226 | | |
229 | 227 | | |
| |||
0 commit comments