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

Method __exit__

playwright/_impl/_sync_base.py:76–85  ·  view source on GitHub ↗
(
        self,
        exc_type: Optional[Type[BaseException]],
        exc_val: Optional[BaseException],
        exc_tb: Optional[TracebackType],
    )

Source from the content-addressed store, hash-verified

74 return self._event
75
76 def __exit__(
77 self,
78 exc_type: Optional[Type[BaseException]],
79 exc_val: Optional[BaseException],
80 exc_tb: Optional[TracebackType],
81 ) -> None:
82 if exc_val:
83 self._event._cancel()
84 else:
85 self._event.value
86
87
88class SyncBase(ImplWrapper):

Callers

nothing calls this directly

Calls 1

_cancelMethod · 0.45

Tested by

no test coverage detected