MCPcopy Index your code
hub / github.com/microsoft/playwright-python / object_to_array

Function object_to_array

playwright/_impl/_helper.py:555–561  ·  view source on GitHub ↗
(obj: Optional[Dict])

Source from the content-addressed store, hash-verified

553
554
555def object_to_array(obj: Optional[Dict]) -> Optional[List[NameValue]]:
556 if not obj:
557 return None
558 result = []
559 for key, value in obj.items():
560 result.append(NameValue(name=key, value=str(value)))
561 return result
562
563
564def is_file_payload(value: Optional[Any]) -> bool:

Callers 1

_inner_fetchMethod · 0.90

Calls 3

NameValueClass · 0.90
appendMethod · 0.80
itemsMethod · 0.45

Tested by

no test coverage detected