Skip to content
Snippets Groups Projects

Make MyPy happy

Merged karp requested to merge make-mypy-happy into master
All threads resolved!
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
  • aa6c5152
    Fix type annotation of UUID · aa6c5152
    karp authored
    According to mypy the previous annotation violated the LSP.
    Therefore, we use the types of the supertype method and check for
    correct types in the method.
+ 1
1
@@ -7,7 +7,7 @@ from ..model import Key
@bp.get("/agendas/-/items")
@require_valid(Key)
def the_agenda_items():
def the_agenda_items() -> list[dict[str, str]]:
tasks = sorted(
TaigaUserStoryProvider.get_the_one().fetch_user_stories(),
key=lambda task: task["kanban_order"],
Loading