MCPcopy Index your code
hub / github.com/python-visualization/folium / __init__

Method __init__

folium/map.py:627–647  ·  view source on GitHub ↗
(
        self,
        text: str,
        style: Optional[str] = None,
        sticky: bool = True,
        **kwargs: TypeJsonValue,
    )

Source from the content-addressed store, hash-verified

625 )
626
627 def __init__(
628 self,
629 text: str,
630 style: Optional[str] = None,
631 sticky: bool = True,
632 **kwargs: TypeJsonValue,
633 ):
634 super().__init__()
635 self._name = "Tooltip"
636
637 self.text = str(text)
638
639 kwargs.update({"sticky": sticky})
640 self.options = remove_empty(**kwargs)
641
642 if style:
643 assert isinstance(
644 style, str
645 ), "Pass a valid inline HTML style property string to style."
646 # noqa outside of type checking.
647 self.style = style
648
649
650class FitBounds(MacroElement):

Callers

nothing calls this directly

Calls 2

remove_emptyFunction · 0.90
__init__Method · 0.45

Tested by

no test coverage detected