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

Method _to_key

folium/features.py:929–932  ·  view source on GitHub ↗

Convert dict to str and enable Jinja2 template syntax.

(d: dict)

Source from the content-addressed store, hash-verified

927
928 @staticmethod
929 def _to_key(d: dict) -> str:
930 """Convert dict to str and enable Jinja2 template syntax."""
931 as_str = json.dumps(d, sort_keys=True)
932 return as_str.replace('"{{', "{{").replace('}}"', "}}")
933
934 @staticmethod
935 def _set_default_key(mapping: TypeStyleMapping) -> None:

Callers 1

_create_mappingMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected