From 8169fd46f83e7dc8f57180b49aefd5ce06b18ff1 Mon Sep 17 00:00:00 2001 From: Shubham Padkonde Date: Tue, 29 Sep 2026 16:48:49 +0530 Subject: [PATCH] =?UTF-8?q?DOC:=20expose=20observer=20removal=20methods=20?= =?UTF-8?q?in=20API=20reference=20=F0=9F=A4=96=20=F0=9F=A4=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/source/api.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/source/api.rst b/docs/source/api.rst index 6c5a0bff5..337c32cb9 100644 --- a/docs/source/api.rst +++ b/docs/source/api.rst @@ -99,6 +99,12 @@ You can also add callbacks to a trait dynamically: ``traitlets.Undefined`` for trait types whose default can only be computed dynamically (e.g. containers and :class:`Instance`). +To remove callbacks, use the corresponding instance methods: + +.. automethod:: HasTraits.unobserve + +.. automethod:: HasTraits.unobserve_all + Validating proposed changes ---------------------------