@@ -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
0 commit comments