Skip to content

Commit

Permalink
fix pylint errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
perrygoy committed Sep 18, 2022
1 parent 352c97c commit 2949415
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion screenpy/narration/narrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def _entangle_func(
self,
channel: str,
adapters: Optional[List[Adapter]] = None,
**channel_kwargs: Kwargs
**channel_kwargs: Kwargs,
) -> Generator:
"""Entangle the function in the adapters' contexts, decorations, etc.
Expand Down
11 changes: 1 addition & 10 deletions screenpy/protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def answered_by(self, the_actor: "Actor") -> Any:
Returns:
The answer, based on the sleuthing the Actor has done.
"""
...


@runtime_checkable
Expand All @@ -45,7 +44,6 @@ def forget(self) -> None:
Forget this Ability by doing any necessary cleanup (quitting browsers,
closing connections, etc.)
"""
...


@runtime_checkable
Expand All @@ -59,7 +57,6 @@ def perform_as(self, the_actor: "Actor") -> None:
Args:
the_actor: the Actor who will perform this Action.
"""
...


@runtime_checkable
Expand All @@ -74,7 +71,7 @@ class Describable(Protocol):
"""Classes that describe themselves are Describable"""

def describe(self) -> str:
...
"""Describe the Describable in the present tense."""


@runtime_checkable
Expand All @@ -99,29 +96,23 @@ def act(
self, func: Callable, line: str, gravitas: Optional[str] = None
) -> Generator:
"""Handle narrating an Act, which designates a group of tests."""
...

def scene(
self, func: Callable, line: str, gravitas: Optional[str] = None
) -> Generator:
"""Handle narrating a Scene, which designates a subgroup of tests."""
...

def beat(self, func: Callable, line: str) -> Generator:
"""Handle narrating a Beat, which is a step in a test."""
...

def aside(self, func: Callable, line: str) -> Generator:
"""Handle narrating an Aside, which can happen any time."""
...

def error(self, exc: Exception) -> None:
"""React to an exception being thrown, probably during a beat."""
...

def attach(self, filepath: str, **kwargs: Any) -> None:
"""Handle attaching a file.
Pass keyword arguments for specific adapters' needs.
"""
...

0 comments on commit 2949415

Please sign in to comment.