Skip to content

Commit 05022e6

Browse files
committed
Use generator over Iterable
1 parent 7c6daf3 commit 05022e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

litecli/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
except ImportError:
1818
from sqlite3 import OperationalError, sqlite_version
1919
from time import time
20-
from typing import Any, Iterable, cast
20+
from typing import Any, Generator, Iterable, cast
2121

2222
import click
2323
import sqlparse
@@ -178,7 +178,7 @@ def register_special_commands(self) -> None:
178178
case_sensitive=True,
179179
)
180180

181-
def change_table_format(self, arg: str, **_: Any) -> Iterable[tuple]:
181+
def change_table_format(self, arg: str, **_: Any) -> Generator[tuple[None, None, None, str], None, None]:
182182
try:
183183
self.formatter.format_name = arg
184184
yield (None, None, None, "Changed table format to {}".format(arg))

0 commit comments

Comments
 (0)