MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / createItem

Function createItem

common/devtools/pdl.py:43–56  ·  view source on GitHub ↗
(
    d: dict, experimental: bool | Any, deprecated: bool | Any, name: str | Any = None
)

Source from the content-addressed store, hash-verified

41
42
43def createItem(
44 d: dict, experimental: bool | Any, deprecated: bool | Any, name: str | Any = None
45) -> OrderedDict[str, Any]:
46 result = OrderedDict(d)
47 if name:
48 result["name"] = name
49 global description
50 if description:
51 result["description"] = description.strip()
52 if experimental:
53 result["experimental"] = True
54 if deprecated:
55 result["deprecated"] = True
56 return result
57
58
59def parse(data: str, file_name: str, map_binary_to_string: bool = False) -> OrderedDict[str, Any]:

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected