MCPcopy Create free account
hub / github.com/python-visualization/folium / get_and_assert_figure_root

Function get_and_assert_figure_root

folium/utilities.py:434–440  ·  view source on GitHub ↗

Return the root element of the tree and assert it's a Figure.

(obj: Element)

Source from the content-addressed store, hash-verified

432
433
434def get_and_assert_figure_root(obj: Element) -> Figure:
435 """Return the root element of the tree and assert it's a Figure."""
436 figure = obj.get_root()
437 assert isinstance(
438 figure, Figure
439 ), "You cannot render this Element if it is not in a Figure."
440 return figure
441
442
443class JsCode:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…