Commit 1a7257d
Thomas Preud'homme
Fix type hint for add_column in lnt.server.db.util
statement variable in lnt.server.db.util's add_column method is of type
DDLElement. As per [1], the bind argument of its execute() method is
optional and take "an Engine or Connection". This commit updates
add_column's type hint accordingly.
[1]
https://docs.sqlalchemy.org/en/13/core/ddl.html#sqlalchemy.schema.DDLElement.execute
Reviewed By: danilaml
Differential Revision: https://reviews.llvm.org/D950641 parent 001ac8f commit 1a7257d
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments