mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
python: Reformat with Black, except quotes.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
5028c081cb
commit
11741543da
@@ -13,6 +13,7 @@ Validator = Callable[[str, object], ResultT]
|
||||
ExtendedValidator = Callable[[str, str, object], str]
|
||||
RealmUserValidator = Callable[[int, object, bool], List[int]]
|
||||
|
||||
|
||||
class ProfileDataElementBase(TypedDict):
|
||||
id: int
|
||||
name: str
|
||||
@@ -21,10 +22,12 @@ class ProfileDataElementBase(TypedDict):
|
||||
field_data: Optional[str]
|
||||
order: int
|
||||
|
||||
|
||||
class ProfileDataElement(ProfileDataElementBase):
|
||||
value: str
|
||||
rendered_value: Optional[str]
|
||||
|
||||
|
||||
ProfileData = List[ProfileDataElement]
|
||||
|
||||
FieldElement = Tuple[int, Promise, Validator[Union[int, str, List[int]]], Callable[[Any], Any], str]
|
||||
@@ -33,9 +36,12 @@ UserFieldElement = Tuple[int, Promise, RealmUserValidator, Callable[[Any], Any],
|
||||
|
||||
ProfileFieldData = Dict[str, Union[Dict[str, str], str]]
|
||||
|
||||
|
||||
class UserDisplayRecipient(TypedDict):
|
||||
email: str
|
||||
full_name: str
|
||||
id: int
|
||||
is_mirror_dummy: bool
|
||||
|
||||
|
||||
DisplayRecipientT = Union[str, List[UserDisplayRecipient]]
|
||||
|
||||
Reference in New Issue
Block a user