aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_conversation.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-01-14 12:42:29 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commitec751c8ae53dbadf74ad1d34ee79df3ffd841bea (patch)
treedfc48b70801640bce518ef471ddd538bc07a2288 /slack/slack_conversation.py
parent2e64309e8094fe7409a0d97d32dfe8d35fed689c (diff)
downloadwee-slack-ec751c8ae53dbadf74ad1d34ee79df3ffd841bea.tar.gz
Use is True/False instead of ==
pyright now supports this.
Diffstat (limited to 'slack/slack_conversation.py')
-rw-r--r--slack/slack_conversation.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/slack/slack_conversation.py b/slack/slack_conversation.py
index e92ddcf..21b953b 100644
--- a/slack/slack_conversation.py
+++ b/slack/slack_conversation.py
@@ -59,14 +59,14 @@ class SlackConversation:
async def init(self):
with self.loading():
info = await self.api.fetch_conversations_info(self)
- if info["ok"] != True:
+ if info["ok"] is False:
# TODO: Handle error
return
info_channel = info["channel"]
- if info_channel["is_im"] == True:
+ if info_channel["is_im"] is True:
self.name = "IM" # TODO
- elif info_channel["is_mpim"] == True:
+ elif info_channel["is_mpim"] is True:
self.name = "MPIM" # TODO
else:
self.name = info_channel["name"]