From 0211f8866c448ca3e3011737228fde2d341dfa78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com> Date: Fri, 14 Apr 2023 14:48:23 +0200 Subject: [PATCH] MAINT: clarify deprecation warning --- src/caosdb/common/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/caosdb/common/models.py b/src/caosdb/common/models.py index a68e0f05..40434b9d 100644 --- a/src/caosdb/common/models.py +++ b/src/caosdb/common/models.py @@ -2562,7 +2562,9 @@ class Messages(list): class _Messages(Messages): def __init__(self, *args, **kwargs): - warn("_Messages was renamed to Messages.", DeprecationWarning) + warn("_Messages is deprecated. " + "Use class Messages instead and beware of the slightly different API of the new" + " Messages class", DeprecationWarning) super().__init__(*args, **kwargs) -- GitLab