From 1f550892d19910ed21d10a71f2a0e88db9c5a93e Mon Sep 17 00:00:00 2001 From: Hans Then Date: Sun, 2 Jun 2024 20:19:45 +0200 Subject: [PATCH] Undo typing changes in realtime --- folium/plugins/realtime.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/folium/plugins/realtime.py b/folium/plugins/realtime.py index 6405e9e5a..69af3c217 100644 --- a/folium/plugins/realtime.py +++ b/folium/plugins/realtime.py @@ -4,11 +4,11 @@ from folium.elements import JSCSSMixin from folium.features import GeoJson -from folium.map import FeatureGroup +from folium.map import Layer from folium.utilities import JsCode, camelize, parse_options -class Realtime(JSCSSMixin, FeatureGroup): +class Realtime(JSCSSMixin, Layer): """Put realtime data on a Leaflet map: live tracking GPS units, sensor data or just about anything. @@ -109,7 +109,7 @@ def __init__( get_feature_id: Union[JsCode, str, None] = None, update_feature: Union[JsCode, str, None] = None, remove_missing: bool = False, - container: Optional[Union[FeatureGroup, GeoJson]] = None, + container: Optional[GeoJson] = None, **kwargs, ): super().__init__()