Skip to content

Commit 2e3f1d6

Browse files
authored
Annotate return type for remove_item method
Added return type annotation for remove_item method. Signed-off-by: Paillat <[email protected]>
1 parent 20dc7eb commit 2e3f1d6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

discord/ui/view.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,11 @@ def remove_item(self, item: ViewItem[V] | int | str) -> Self:
246246
----------
247247
item: Union[:class:`ViewItem`, :class:`int`, :class:`str`]
248248
The item, item ``id``, or item ``custom_id`` to remove from the view.
249+
250+
Returns
251+
-------
252+
:class:`BaseView`
253+
The view instance.
249254
"""
250255

251256
if isinstance(item, (str, int)):

0 commit comments

Comments
 (0)