From fee51fd27e23996f67b227cade447d8676bd882b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@ericsson.com> Date: Sun, 1 Sep 2024 18:30:06 +0200 Subject: [PATCH] fixed docs for CallableGroup --- satella/coding/concurrent/callablegroup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/satella/coding/concurrent/callablegroup.py b/satella/coding/concurrent/callablegroup.py index d08ae8ad..4f468223 100644 --- a/satella/coding/concurrent/callablegroup.py +++ b/satella/coding/concurrent/callablegroup.py @@ -111,6 +111,8 @@ class CallableGroup(tp.Generic[T]): """ Add a callable. + .. note:: Same callable can't be added twice. It will silently fail. + Can be a :class:`~satella.coding.concurrent.CancellableCallback`, in that case method :meth:`~satella.coding.concurrent.CallableGroup.remove_cancelled` might be useful. -- GitLab