mirror of https://github.com/zulip/zulip.git
mypy: Fix incorrect annotation for by_used_time.
This commit is contained in:
parent
650469ead6
commit
f944ac8902
|
@ -35,7 +35,7 @@ import re
|
|||
import time
|
||||
|
||||
from six.moves import filter, map, range, zip
|
||||
from typing import Any, Dict, List, Tuple, Optional, Sequence, Callable, Type, \
|
||||
from typing import Any, Dict, List, Tuple, Optional, Callable, Type, \
|
||||
Union, Text
|
||||
|
||||
@zulip_login_required
|
||||
|
@ -1018,7 +1018,7 @@ def realm_user_summary_table(all_records, admin_emails):
|
|||
rows.append(row)
|
||||
|
||||
def by_used_time(row):
|
||||
# type: (Dict[str, Sequence[str]]) -> str
|
||||
# type: (Dict[str, Any]) -> str
|
||||
return row['cells'][3]
|
||||
|
||||
rows = sorted(rows, key=by_used_time, reverse=True)
|
||||
|
|
Loading…
Reference in New Issue