Getting started on docstrings

This commit is contained in:
Moishe Lettvin
2024-03-07 12:51:19 -05:00
parent 337ca7f581
commit 8fb92e3fd7
3 changed files with 63 additions and 28 deletions

View File

@@ -27,12 +27,6 @@ class FrameProcessor:
yield frame
yield frame
@abstractmethod
async def finalize(self) -> AsyncGenerator[Frame, None]:
# This is a trick for the interpreter (and linter) to know that this is a generator.
if False:
yield Frame()
@abstractmethod
async def interrupted(self) -> None:
"""Handle any cleanup if the pipeline was interrupted."""