Mark public callbacks as positional-only

This commit is contained in:
Bryan Forbes
2022-08-22 14:21:19 -05:00
committed by GitHub
parent 01bb7ecb79
commit b12b4b18fd
6 changed files with 23 additions and 24 deletions

View File

@ -134,7 +134,7 @@ class Modal(View):
super().__init__(timeout=timeout)
async def on_submit(self, interaction: Interaction) -> None:
async def on_submit(self, interaction: Interaction, /) -> None:
"""|coro|
Called when the modal is submitted.
@ -146,7 +146,7 @@ class Modal(View):
"""
pass
async def on_error(self, interaction: Interaction, error: Exception) -> None:
async def on_error(self, interaction: Interaction, error: Exception, /) -> None:
"""|coro|
A callback that is called when :meth:`on_submit`