diff --git a/src/print_todos.py b/src/print_todos.py index 81204f5..1da27ce 100644 --- a/src/print_todos.py +++ b/src/print_todos.py @@ -2,7 +2,7 @@ Helper module to handle printing a list of Todo objects """ -from typing import Any, NamedTuple, TypeVar +from typing import Any, Generic, NamedTuple, TypeVar from src.class_cursor import Cursor from src.class_todo import Todo, Todos @@ -26,7 +26,7 @@ T = TypeVar("T") -class SublistItems[T](NamedTuple): +class SublistItems(Generic[T], NamedTuple): """ NamedTuple representing a slice of a list of T, an index within that list,