Skip to content

Commit 96c86dd

Browse files
committed
Add ty ignore statement
1 parent 3090920 commit 96c86dd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

litecli/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,8 @@ def one_iteration(text: str | None = None) -> None:
509509
successful = False
510510
start = time()
511511
res = sqlexecute.run(text)
512-
self.formatter.query = text
512+
# Ty complains about dynamic assignment. Since the code from the library, ignore the assignment error
513+
self.formatter.query = text # ty: ignore[invalid-assignment]
513514
successful = True
514515
special.unset_once_if_written()
515516
# Keep track of whether or not the query is mutating. In case
@@ -816,7 +817,7 @@ def run_query(self, query: str, new_line: bool = True) -> None:
816817
results = self.sqlexecute.run(query)
817818
for result in results:
818819
title, cur, headers, status = result
819-
self.formatter.query = query
820+
self.formatter.query = query # ty: ignore[invalid-assignment]
820821
output = self.format_output(title, cur, headers)
821822
for line in output:
822823
click.echo(line, nl=new_line)

0 commit comments

Comments
 (0)