Closed hansthen closed 5 months ago
@ocefpaf is looking into that test failure in https://github.com/python-visualization/folium/pull/1978, so no need to do that here fortunately. Maybe you can revert the latest commit, then merge it?
Keep merging things without worrying about that Windows failure. It is a problem with the dependencies in conda-forge and we are working to fix it upstream.
This PR corrects a few type annotations for the
Realtime
plugin.Realtime superclass in leaflet is GeoJson (which is a subclass of featuregroup). In Folium I cannot make Realtime a subclass of GeoJson since GeoJson requires features to be present before rendering. I made it a subclass of FeatureGroup to more clearly document that features can be added to a Realtime layer.
The container parameter for Realtime cannot just be any
L.Layer
. It must be aFeatureGroup
or something that allows adding features.I created type annotations to reflect this on the Folium side.