We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 752dd5d commit 0112ae5Copy full SHA for 0112ae5
python/sqlformat.py
@@ -11,7 +11,7 @@
11
# copies or substantial portions of the Software.
12
# File: python/sqlformat.py
13
14
-from typing import Optional, Union
+from typing import Optional, Union, cast
15
16
import sqlparse
17
import vim
@@ -49,13 +49,13 @@ def format_sql(
49
raise ValueError("Line width must be a positive integer")
50
51
# Format the SQL
52
- formatted = sqlparse.format(
+ formatted = cast(str, sqlparse.format(
53
sql,
54
reindent=True,
55
indent_width=indent,
56
keyword_case=keyword_case,
57
wrap_after=line_width,
58
- )
+ ))
59
60
vim.command('echo "SQL formatting complete"')
61
return formatted
0 commit comments