diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-10-22 12:42:48 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:54 +0100 |
commit | d712abc15a7297129c8e8a445eb3b9a20bcf4c02 (patch) | |
tree | 63121245990300ceaf259af15362b27e3b9a97f0 /slack/slack_workspace.py | |
parent | 90e78bb00e9f4457f5cd5bb0f181a9b6fad779df (diff) | |
download | wee-slack-d712abc15a7297129c8e8a445eb3b9a20bcf4c02.tar.gz |
Make SlackConversation constructor async
This is perhaps a bit hacky, but it makes the type checker enforce that
we complete the async initialization of SlackConversation instead of
getting a runtime exception.
Diffstat (limited to 'slack/slack_workspace.py')
-rw-r--r-- | slack/slack_workspace.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slack/slack_workspace.py b/slack/slack_workspace.py index 350a3ca..a5c55bc 100644 --- a/slack/slack_workspace.py +++ b/slack/slack_workspace.py @@ -123,7 +123,7 @@ class SlackConversations(SlackItem[SlackConversation, SlackConversationsInfo]): async def _create_item_from_info( self, item_info: SlackConversationsInfo ) -> SlackConversation: - return await self._item_class.create_from_info(self.workspace, item_info) + return await self._item_class(self.workspace, item_info) class SlackUsers(SlackItem[SlackUser, SlackUserInfo]): |