From d4388fcaa4d8ecee4099ea0851eafb4f3d080d8d Mon Sep 17 00:00:00 2001 From: Hans Then Date: Sun, 2 Jun 2024 19:36:59 +0200 Subject: [PATCH] Update folium/map.py Co-authored-by: Frank Anema <33519926+Conengmo@users.noreply.github.com> --- folium/map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folium/map.py b/folium/map.py index 4bf76b357..ea6c66131 100644 --- a/folium/map.py +++ b/folium/map.py @@ -32,7 +32,7 @@ class Evented(MacroElement): method using python keyword arguments. """ - def on(self, **event_map): + def on(self, **event_map: JsCode): for event_type, handler in event_map.items(): self.add_child(EventHandler(event_type, handler))