Skip to content

Commit

Permalink
fix: use generic class syntax from pre-3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
mecaneer23 committed Jan 19, 2024
1 parent 25543f4 commit b235c9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/print_todos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit b235c9c

Please sign in to comment.