From 9f4e2220bf06add4602507449d731cf75c237af2 Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Sun, 4 Feb 2024 18:04:26 +0100 Subject: [PATCH] Ensure ChatMessage internals are visible to Panel --- panel/chat/message.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/panel/chat/message.py b/panel/chat/message.py index bd0457b74e..599560c079 100644 --- a/panel/chat/message.py +++ b/panel/chat/message.py @@ -14,7 +14,8 @@ from tempfile import NamedTemporaryFile from textwrap import indent from typing import ( - TYPE_CHECKING, Any, ClassVar, Dict, Iterable, List, Union, + TYPE_CHECKING, Any, Callable, ClassVar, Dict, Iterable, List, Optional, + Union, ) from zoneinfo import ZoneInfo @@ -687,6 +688,11 @@ def update( updates["object"] = value self.param.update(**updates) + def select( + self, selector: Optional[type | Callable[[Viewable], bool]] = None + ) -> List[Viewable]: + return super().select(selector) + self._composite.select(selector) + def serialize( self, prefix_with_viewable_label: bool = True,