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

Method __init__

playwright/_impl/_console_message.py:28–35  ·  view source on GitHub ↗
(
        self, event: Dict, loop: AbstractEventLoop, dispatcher_fiber: Any
    )

Source from the content-addressed store, hash-verified

26
27class ConsoleMessage:
28 def __init__(
29 self, event: Dict, loop: AbstractEventLoop, dispatcher_fiber: Any
30 ) -> None:
31 self._event = event
32 self._loop = loop
33 self._dispatcher_fiber = dispatcher_fiber
34 self._page: Optional["Page"] = from_nullable_channel(event.get("page"))
35 self._worker: Optional["Worker"] = from_nullable_channel(event.get("worker"))
36
37 def __repr__(self) -> str:
38 return f"<ConsoleMessage type={self.type} text={self.text}>"

Callers

nothing calls this directly

Calls 2

from_nullable_channelFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected