Skip to content

Commit

Permalink
Update folium/map.py
Browse files Browse the repository at this point in the history
Co-authored-by: Frank Anema <33519926+Conengmo@users.noreply.github.com>
  • Loading branch information
hansthen and Conengmo authored Jun 2, 2024
1 parent aea0952 commit d4388fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion folium/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit d4388fc

Please sign in to comment.