Skip to content

Commit

Permalink
Fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ChihweiLHBird committed Dec 15, 2022
1 parent 95191a0 commit 2d44eef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sanic/signals.py
Expand Up @@ -218,7 +218,8 @@ def add( # type: ignore
event = ".".join([*parts[:2], "<__trigger__>"])

try:
# Attaching __requirements__ and __trigger__ to the handler is deprecated and will be removed in v23.6.
# Attaching __requirements__ and __trigger__ to the handler
# is deprecated and will be removed in v23.6.
handler.__requirements__ = condition # type: ignore
handler.__trigger__ = trigger # type: ignore
except AttributeError:
Expand Down

0 comments on commit 2d44eef

Please sign in to comment.