Skip to content
12 changes: 5 additions & 7 deletions appium/protocols/webdriver/can_execute_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@


class CanExecuteScripts(Protocol):
def pin_script(self, script: str, script_key: Optional[Any] = None) -> Any: ...
Comment thread
KazuCocoa marked this conversation as resolved.

def unpin(self, script_key: Any) -> None: ...

def get_pinned_scripts(self) -> List[str]: ...

def execute_script(self, script: str, *args: Any) -> Any: ...

def execute_async_script(self, script: str, *args: Any) -> Any: ...
# TODO: Implement them later
# def pin_script(self, script: str, script_key: Optional[Any] = None) -> Any: ...
# def unpin(self, script_key: Any) -> None: ...
# def get_pinned_scripts(self) -> List[str]: ...
# def execute_async_script(self, script: str, *args: Any) -> Any: ...
2 changes: 2 additions & 0 deletions appium/webdriver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
Appium Python Client: WebDriver module
"""

__all__ = ["Remote", "WebElement"]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change looks reasonable to me. This fixes mypy --strict also.


from .webdriver import WebDriver as Remote
from .webelement import WebElement