Skip to content

Commit c18b70d

Browse files
committed
Finish hints for utils
1 parent bd1be12 commit c18b70d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/django_mysql/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def index_name(model: Model, *field_names: str, using: str = DEFAULT_DB_ALIAS) -
162162
),
163163
(model._meta.db_table,) + column_names,
164164
)
165-
indexes = defaultdict(list)
165+
indexes: defaultdict[str, list[str]] = defaultdict(list)
166166
for index_name, _, column_name in cursor.fetchall():
167167
indexes[index_name].append(column_name)
168168

@@ -177,7 +177,7 @@ def get_list_sql(sequence: list[str] | tuple[str, ...]) -> str:
177177
return "({})".format(",".join("%s" for x in sequence))
178178

179179

180-
def mysql_connections() -> Generator[BaseDatabaseWrapper, None, None]:
180+
def mysql_connections() -> Generator[tuple[str, BaseDatabaseWrapper], None, None]:
181181
conn_names = [DEFAULT_DB_ALIAS] + list(set(connections) - {DEFAULT_DB_ALIAS})
182182
for alias in conn_names:
183183
connection = connections[alias]

0 commit comments

Comments
 (0)