impl/python/group_by_due.py
428 bytes · the Python implementation · view raw
Imports name this capability’s declared dependencies, which fune builds next to it in your project; each one links to its page.
from typing import List, Sequence
from .todo_group_by_due_group_by_due_with_order import group_by_due_with_order ← groupByDueWithOrder, another function of this group · built into the same file, even by a slim install
from .todo_group_by_due_types import DueGroup
from .todo_item import Todo ← from todo.item ^1.0.0 · built alongside by fune
def group_by_due(todos: Sequence[Todo], today: str) -> List[DueGroup]:
"""Todos in planner sections, fixed order, empty sections left out; multi-date sections sorted by date."""
return group_by_due_with_order(todos, today, "due")