Skip to content

Commit dce9c80

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent 4003db1 commit dce9c80

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

discord/ui/item.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
"""
2525

2626
from __future__ import annotations
27+
28+
import inspect
2729
from typing import (
2830
TYPE_CHECKING,
2931
Any,
@@ -32,9 +34,8 @@
3234
Generic,
3335
TypeVar,
3436
)
35-
from typing_extensions import Self
3637

37-
import inspect
38+
from typing_extensions import Self
3839

3940
from ..interactions import Interaction
4041

@@ -77,11 +78,11 @@ def __init__(
7778

7879
def __call__(self, interaction: Interaction) -> Coroutine[Any, Any, Any]:
7980
if self.parameters_amount == 1:
80-
return self.func(interaction) # type: ignore # type checker doesn't like optional params
81+
return self.func(interaction) # type: ignore # type checker doesn't like optional params
8182
elif self.parameters_amount == 2:
82-
return self.func(interaction, self.item) # type: ignore # type checker doesn't like optional params
83+
return self.func(interaction, self.item) # type: ignore # type checker doesn't like optional params
8384
elif self.parameters_amount == 3:
84-
return self.func(interaction, self.item, self.item.view) # type: ignore # type checker doesn't like optional params
85+
return self.func(interaction, self.item, self.item.view) # type: ignore # type checker doesn't like optional params
8586
else:
8687
raise TypeError("callback must accept 1 to 3 parameters")
8788

0 commit comments

Comments
 (0)