From c7f75f071e9ad86b01fab7c3cfb43ee797e19f1a Mon Sep 17 00:00:00 2001 From: Zixuan James Li Date: Fri, 8 Jul 2022 11:11:34 -0400 Subject: [PATCH] types: Add ProfileDataElementUpdateDict. Signed-off-by: Zixuan James Li --- zerver/lib/types.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zerver/lib/types.py b/zerver/lib/types.py index 94e809c927..73f0fe63ce 100644 --- a/zerver/lib/types.py +++ b/zerver/lib/types.py @@ -33,6 +33,11 @@ class ProfileDataElement(ProfileDataElementBase): rendered_value: Optional[str] +class ProfileDataElementUpdateDict(TypedDict): + id: int + value: ProfileDataElementValue + + ProfileData = List[ProfileDataElement] FieldElement = Tuple[int, Promise, Validator[ProfileDataElementValue], Callable[[Any], Any], str]