MCPcopy Index your code
hub / github.com/plotly/plotly.py / _many_to_one

Function _many_to_one

plotly/matplotlylib/mplexporter/utils.py:40–42  ·  view source on GitHub ↗

Convert a many-to-one mapping to a one-to-one mapping

(input_dict)

Source from the content-addressed store, hash-verified

38
39
40def _many_to_one(input_dict):
41 """Convert a many-to-one mapping to a one-to-one mapping"""
42 return dict((key, val) for keys, val in input_dict.items() for key in keys)
43
44
45LINESTYLES = _many_to_one(

Callers 1

utils.pyFile · 0.85

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected