File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ def format_code(text: str, line_width=None) -> str:
5151 # Use the terminal width, but cap it to 200 characters.
5252 line_width = min (200 , shutil .get_terminal_size ().columns )
5353 formatted_text = black .format_str (
54- text , mode = black .FileMode (line_length = line_width )
54+ text , mode = black .Mode (line_length = line_width )
5555 ).rstrip ()
5656 return reindent (formatted_text )
5757
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ def create_context_prompt(context: AnswerContext) -> str:
128128 prompt = [
129129 "[ANSWER CONTEXT]" ,
130130 "===" ,
131- black .format_str (str (dictify (context )), mode = black .FileMode (line_length = 200 )),
131+ black .format_str (str (dictify (context )), mode = black .Mode (line_length = 200 )),
132132 "===" ,
133133 ]
134134 return "\n " .join (prompt )
You can’t perform that action at this time.
0 commit comments