Skip to content

Commit

Permalink
[py]: Adding a start/stop interface for typing
Browse files Browse the repository at this point in the history
  • Loading branch information
symonk committed Oct 2, 2022
1 parent 084ffc8 commit 58c3c5c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions py/selenium/webdriver/protocols.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from typing_extensions import Protocol


class Launchable(Protocol):
"""An implicit interface for starting and stopping a service. This is
primarily used for structural subtyping."""

def start(self) -> None:
"""Start the service."""

def stop(self) -> None:
"""Stop the service."""

0 comments on commit 58c3c5c

Please sign in to comment.