Skip to content

Commit 0112ae5

Browse files
committed
fix: update ci workflows
1 parent 752dd5d commit 0112ae5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/sqlformat.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# copies or substantial portions of the Software.
1212
# File: python/sqlformat.py
1313

14-
from typing import Optional, Union
14+
from typing import Optional, Union, cast
1515

1616
import sqlparse
1717
import vim
@@ -49,13 +49,13 @@ def format_sql(
4949
raise ValueError("Line width must be a positive integer")
5050

5151
# Format the SQL
52-
formatted = sqlparse.format(
52+
formatted = cast(str, sqlparse.format(
5353
sql,
5454
reindent=True,
5555
indent_width=indent,
5656
keyword_case=keyword_case,
5757
wrap_after=line_width,
58-
)
58+
))
5959

6060
vim.command('echo "SQL formatting complete"')
6161
return formatted

0 commit comments

Comments
 (0)