MCPcopy Create free account
hub / github.com/microsoft/Webwright / _none_to_str

Function _none_to_str

src/webwright/models/base.py:21–22  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

19
20
21def _none_to_str(value: Any) -> str:
22 return "" if value is None else str(value)
23
24
25# String field that coerces None -> "" and any value -> str via pydantic.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected