Skip to content

Commit

Permalink
updating docstrings based on comments in PR
Browse files Browse the repository at this point in the history
  • Loading branch information
bandophahita committed Jan 15, 2024
1 parent 3f3a997 commit 5a1ac15
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion screenpy_selenium/actions/hold_down.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class HoldDown:
@classmethod
def command_or_control_key(cls: Type[SelfHoldDown]) -> SelfHoldDown:
"""
A convenience method.
A convenience method for supporting multiple operating systems.
Figures out what operating system the Actor is using and directs the Actor
which execution key to hold down.
Expand Down
2 changes: 1 addition & 1 deletion screenpy_selenium/actions/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Release:
@classmethod
def command_or_control_key(cls: Type[SelfRelease]) -> SelfRelease:
"""
A convenience method.
A convenience method for supporting multiple operating systems.
Figures out what operating system the Actor is using and tells the Actor which
execution key to release.
Expand Down
4 changes: 2 additions & 2 deletions screenpy_selenium/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ def __repr__(self: SelfTarget) -> str:
__str__ = __repr__

def __iter__(self: SelfTarget) -> Iterator[str]:
"""Interator."""
"""Allow Targets to be treated as ``(By, str)`` tuples."""
return self.get_locator().__iter__()

def __getitem__(self: SelfTarget, index: int) -> str:
"""Allow slicing of target name directly."""
"""Allow Targets to be treated as ``(By, str)`` tuples."""
return self.get_locator()[index]

def __init__(
Expand Down

0 comments on commit 5a1ac15

Please sign in to comment.