Skip to content

Commit

Permalink
Fix type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
nicovank authored Feb 6, 2024
1 parent 1357a92 commit f405943
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cwhy/conversation/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import argparse
from typing import List

import llm_utils

Expand All @@ -7,8 +8,8 @@ def get_truncated_error_message(args: argparse.Namespace, diagnostic: str) -> st
"""
Alternate taking front and back lines until the maximum number of tokens.
"""
front: list[str] = []
back: list[str] = []
front: List[str] = []
back: List[str] = []
diagnostic_lines = diagnostic.splitlines()
n = len(diagnostic_lines)

Expand Down

0 comments on commit f405943

Please sign in to comment.