mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
docstrings
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user