From 3e2850660710977b40189cd4c31c7f948f99ddd7 Mon Sep 17 00:00:00 2001 From: LoopThrough-i-j Date: Tue, 23 Feb 2021 19:42:03 +0530 Subject: [PATCH] zulip-apis: Update `reaction_data` type. Update `reaction_data` type in add_reaction and remove_reaction, from Dict[str, str] to Dict[str, Any] --- zulip/zulip/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index 196cfbe..c28d95d 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -829,12 +829,12 @@ class Client: method='GET' ) - def add_reaction(self, reaction_data: Dict[str, str]) -> Dict[str, Any]: + def add_reaction(self, reaction_data: Dict[str, Any]) -> Dict[str, Any]: ''' Example usage: >>> client.add_reaction({ - 'message_id': '100', + 'message_id': 100, 'emoji_name': 'joy', 'emoji_code': '1f602', 'reaction_type': 'unicode_emoji' @@ -847,12 +847,12 @@ class Client: request=reaction_data, ) - def remove_reaction(self, reaction_data: Dict[str, str]) -> Dict[str, Any]: + def remove_reaction(self, reaction_data: Dict[str, Any]) -> Dict[str, Any]: ''' Example usage: >>> client.remove_reaction({ - 'message_id': '100', + 'message_id': 100, 'emoji_name': 'joy', 'emoji_code': '1f602', 'reaction_type': 'unicode_emoji'