Skip to content

Commit 125ead2

Browse files
authored
Merge pull request #1524 from interactions-py/unstable
5.9.2
2 parents 6e9c9fd + 250770c commit 125ead2

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

interactions/models/internal/application_commands.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,6 @@ def component_callback(*custom_id: str | re.Pattern) -> Callable[[AsyncCallable]
11701170
*custom_id: The custom ID of the component to wait for
11711171
11721172
"""
1173-
resolved_custom_id: tuple[str | re.Pattern, ...] | list[str] = []
11741173

11751174
def wrapper(func: AsyncCallable) -> ComponentCommand:
11761175
resolved_custom_id = custom_id or [func.__name__]
@@ -1182,8 +1181,8 @@ def wrapper(func: AsyncCallable) -> ComponentCommand:
11821181
name=f"ComponentCallback::{resolved_custom_id}", callback=func, listeners=resolved_custom_id
11831182
)
11841183

1185-
custom_id = _unpack_helper(resolved_custom_id)
1186-
custom_ids_validator(*resolved_custom_id)
1184+
custom_id = _unpack_helper(custom_id)
1185+
custom_ids_validator(*custom_id)
11871186
return wrapper
11881187

11891188

@@ -1203,7 +1202,6 @@ def modal_callback(*custom_id: str | re.Pattern) -> Callable[[AsyncCallable], Mo
12031202
Args:
12041203
*custom_id: The custom ID of the modal to wait for
12051204
"""
1206-
resolved_custom_id: tuple[str | re.Pattern, ...] | list[str] = []
12071205

12081206
def wrapper(func: AsyncCallable) -> ModalCommand:
12091207
resolved_custom_id = custom_id or [func.__name__]
@@ -1213,8 +1211,8 @@ def wrapper(func: AsyncCallable) -> ModalCommand:
12131211

12141212
return ModalCommand(name=f"ModalCallback::{resolved_custom_id}", callback=func, listeners=resolved_custom_id)
12151213

1216-
custom_id = _unpack_helper(resolved_custom_id)
1217-
custom_ids_validator(*resolved_custom_id)
1214+
custom_id = _unpack_helper(custom_id)
1215+
custom_ids_validator(*custom_id)
12181216
return wrapper
12191217

12201218

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "interactions.py"
3-
version = "5.9.1"
3+
version = "5.9.2"
44
description = "Easy, simple, scalable and modular: a Python API wrapper for interactions."
55
authors = [
66
"LordOfPolls <dev@lordofpolls.com>",

0 commit comments

Comments
 (0)