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

Function is_file_payload

playwright/_impl/_helper.py:564–570  ·  view source on GitHub ↗
(value: Optional[Any])

Source from the content-addressed store, hash-verified

562
563
564def is_file_payload(value: Optional[Any]) -> bool:
565 return (
566 isinstance(value, dict)
567 and "name" in value
568 and "mimeType" in value
569 and "buffer" in value
570 )
571
572
573TEXTUAL_MIME_TYPE = re.compile(

Callers 2

_inner_fetchMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected