From 2949415ba51ccbb3bd8e9810320ed403dc9461a9 Mon Sep 17 00:00:00 2001 From: Perry Goy Date: Sun, 18 Sep 2022 17:24:34 -0500 Subject: [PATCH] fix pylint errors. --- screenpy/narration/narrator.py | 2 +- screenpy/protocols.py | 11 +---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/screenpy/narration/narrator.py b/screenpy/narration/narrator.py index 0eabbcdd..aa10c080 100644 --- a/screenpy/narration/narrator.py +++ b/screenpy/narration/narrator.py @@ -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. diff --git a/screenpy/protocols.py b/screenpy/protocols.py index 44eb9120..102e4589 100644 --- a/screenpy/protocols.py +++ b/screenpy/protocols.py @@ -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 @@ -45,7 +44,6 @@ def forget(self) -> None: Forget this Ability by doing any necessary cleanup (quitting browsers, closing connections, etc.) """ - ... @runtime_checkable @@ -59,7 +57,6 @@ def perform_as(self, the_actor: "Actor") -> None: Args: the_actor: the Actor who will perform this Action. """ - ... @runtime_checkable @@ -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 @@ -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. """ - ...