Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
Make mypy happy
Browse files Browse the repository at this point in the history
Relates to python/mypy#9003

I hope one day that the ignore and the explicit type
declarations will not be needed.
  • Loading branch information
ltworf committed Jun 21, 2020
1 parent 5c3cb1b commit c8be0db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,9 +789,9 @@ def events_iter(self) -> Iterator[Optional[SlackEvent]]:
continue

try:
ev = load(
ev: Optional[Union[TopicChange, FileShared, MessageBot, MessageEdit, MessageDelete, GroupJoined, Join, Leave]] = load(
event,
Union[TopicChange, FileShared, MessageBot, MessageEdit, MessageDelete, GroupJoined, Join, Leave]
Union[TopicChange, FileShared, MessageBot, MessageEdit, MessageDelete, GroupJoined, Join, Leave] # type: ignore
)
except Exception:
ev = None
Expand Down

0 comments on commit c8be0db

Please sign in to comment.