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

Method __init__

folium/utilities.py:446–450  ·  view source on GitHub ↗
(self, js_code: Union[str, "JsCode"])

Source from the content-addressed store, hash-verified

444 """Wrapper around Javascript code."""
445
446 def __init__(self, js_code: Union[str, "JsCode"]):
447 if isinstance(js_code, JsCode):
448 self.js_code: str = js_code.js_code
449 else:
450 self.js_code = js_code
451
452 def __str__(self):
453 return self.js_code

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected