typing: Amend inaccurate type annotations.

This amend some type annotations that turn out to be inaccurate with
django-stubs.
This commit is contained in:
PIG208
2021-07-26 23:32:10 +08:00
committed by Tim Abbott
parent caaa424ef5
commit e517f967b8
7 changed files with 23 additions and 10 deletions

View File

@@ -369,7 +369,7 @@ def ad_hoc_queries() -> List[Dict[str, str]]:
cursor.close()
def fix_rows(
i: int, fixup_func: Union[Callable[[Realm], mark_safe], Callable[[datetime], str]]
i: int, fixup_func: Union[Callable[[str], mark_safe], Callable[[datetime], str]]
) -> None:
for row in rows:
row[i] = fixup_func(row[i])