Skip to content

Commit fae92f2

Browse files
andersktimabbott
authored andcommitted
actions: Convert TypedDict declaration to Python 3.6 style.
Generated by pyupgrade, with manual indentation adjustment for asottile/pyupgrade#507. Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 5483eba commit fae92f2

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

zerver/lib/actions.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2008,14 +2008,11 @@ def do_send_messages(
20082008
else:
20092009
user_list = list(user_ids)
20102010

2011-
UserData = TypedDict(
2012-
"UserData",
2013-
{
2014-
"id": int,
2015-
"flags": List[str],
2016-
"mentioned_user_group_id": Optional[int],
2017-
},
2018-
)
2011+
class UserData(TypedDict):
2012+
id: int
2013+
flags: List[str]
2014+
mentioned_user_group_id: Optional[int]
2015+
20192016
users: List[UserData] = []
20202017
for user_id in user_list:
20212018
flags = user_flags.get(user_id, [])

0 commit comments

Comments
 (0)