Skip to content

Commit 58c3c5c

Browse files
committed
[py]: Adding a start/stop interface for typing
1 parent 084ffc8 commit 58c3c5c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

py/selenium/webdriver/protocols.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from typing_extensions import Protocol
2+
3+
4+
class Launchable(Protocol):
5+
"""An implicit interface for starting and stopping a service. This is
6+
primarily used for structural subtyping."""
7+
8+
def start(self) -> None:
9+
"""Start the service."""
10+
11+
def stop(self) -> None:
12+
"""Stop the service."""

0 commit comments

Comments
 (0)