Module signals_notebook.entities.todo_list.task_container

Expand source code
from typing import ClassVar, Literal

from pydantic import Field

from signals_notebook.common_types import EntityType
from signals_notebook.entities import TodoList


class TaskContainer(TodoList):
    type: Literal[EntityType.TASK_CONTAINER] = Field(allow_mutation=False)  # type: ignore
    _template_name: ClassVar = 'task_container.html'

    @classmethod
    def _get_entity_type(cls) -> EntityType:
        return EntityType.TASK_CONTAINER

Classes

class TaskContainer (**data: Any)

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

Expand source code
class TaskContainer(TodoList):
    type: Literal[EntityType.TASK_CONTAINER] = Field(allow_mutation=False)  # type: ignore
    _template_name: ClassVar = 'task_container.html'

    @classmethod
    def _get_entity_type(cls) -> EntityType:
        return EntityType.TASK_CONTAINER

Ancestors

Class variables

var type : Literal[]

Inherited members