MCPcopy
hub / github.com/python-visualization/folium / __init__

Method __init__

folium/features.py:2063–2081  ·  view source on GitHub ↗
(
        self,
        control: Optional[str] = None,
        *args,
        position: Optional[TypePosition] = None,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

2061 )
2062
2063 def __init__(
2064 self,
2065 control: Optional[str] = None,
2066 *args,
2067 position: Optional[TypePosition] = None,
2068 **kwargs,
2069 ):
2070 super().__init__()
2071 if control:
2072 self._name = control
2073
2074 if position is not None:
2075 position = position.lower() # type: ignore
2076 if position not in (args := get_args(TypePosition)):
2077 raise TypeError(f"position must be one of {args}")
2078 kwargs["position"] = position
2079
2080 self.args = args
2081 self.options = remove_empty(**kwargs)

Callers

nothing calls this directly

Calls 2

remove_emptyFunction · 0.90
__init__Method · 0.45

Tested by

no test coverage detected