Skip to content

Commit

Permalink
coretasks: fix incomplete type defs
Browse files Browse the repository at this point in the history
  • Loading branch information
Exirel committed Oct 14, 2024
1 parent b786a59 commit a6cdae5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sopel/coretasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def _handle_sasl_capability(
CAP_SASL = plugin.capability('sasl', handler=_handle_sasl_capability)


def setup(bot: Sopel):
def setup(bot: Sopel) -> None:
"""Set up the coretasks plugin.
The setup phase is used to activate the throttle feature to prevent a flood
Expand Down Expand Up @@ -1261,7 +1261,7 @@ def _make_sasl_plain_token(account, password):
@plugin.thread(False)
@plugin.unblockable
@plugin.priority('medium')
def sasl_success(bot: SopelWrapper, trigger: Trigger):
def sasl_success(bot: SopelWrapper, trigger: Trigger) -> None:
"""Resume capability negotiation on successful SASL auth."""
LOGGER.info("Successful SASL Auth.")
bot.resume_capability_negotiation(CAP_SASL.cap_req, 'coretasks')
Expand Down Expand Up @@ -1514,7 +1514,7 @@ def _record_who(
away: Optional[bool] = None,
is_bot: Optional[bool] = None,
modes: Optional[str] = None,
):
) -> None:
nick = bot.make_identifier(nick)
channel = bot.make_identifier(channel)
if nick not in bot.users:
Expand Down

0 comments on commit a6cdae5

Please sign in to comment.