MCPcopy Index your code
hub / github.com/plotly/dash / fix_keywords

Function fix_keywords

dash/development/_py_components_generation.py:536–543  ·  view source on GitHub ↗

replaces javascript keywords true, false, null with Python keywords

(txt)

Source from the content-addressed store, hash-verified

534
535
536def fix_keywords(txt):
537 """
538 replaces javascript keywords true, false, null with Python keywords
539 """
540 fix_word = {"true": "True", "false": "False", "null": "None"}
541 for js_keyword, python_keyword in fix_word.items():
542 txt = txt.replace(js_keyword, python_keyword)
543 return txt
544
545
546# pylint: disable=too-many-arguments

Callers 1

create_prop_docstringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…