docstrings

This commit is contained in:
Will McGugan
2023-04-07 21:08:08 +01:00
parent 6c958a1140
commit 5726a20e8e
2 changed files with 7 additions and 2 deletions

View File

@@ -135,7 +135,7 @@ class WorkerManager:
node: Worker DOM node.
group: A group name.
Return:
Returns:
A list of workers that were cancelled.
"""
workers = [
@@ -156,7 +156,7 @@ class WorkerManager:
Returns:
List of cancelled workers.
."""
"""
workers = [worker for worker in self._workers if worker.node == node]
for worker in workers:
worker.cancel()

View File

@@ -168,7 +168,9 @@ class RenderCache(NamedTuple):
"""Stores results of a previous render."""
size: Size
"""The size of the render."""
lines: list[Strip]
"""Contents of the render."""
class WidgetError(Exception):
@@ -184,8 +186,11 @@ class PseudoClasses(NamedTuple):
cache-key."""
enabled: bool
"""Is 'enabled' applied?"""
focus: bool
"""Is 'focus' applied?"""
hover: bool
"""Is 'hover' applied?"""
class _BorderTitle: