mirror of
https://github.com/usestrix/strix.git
synced 2026-08-23 03:12:37 +02:00
feat: Add prompt module collections and contributing.md (#40)
This commit is contained in:
+2
-2
@@ -7,7 +7,7 @@ import signal
|
||||
import sys
|
||||
import threading
|
||||
from collections.abc import Callable
|
||||
from typing import Any, ClassVar
|
||||
from typing import Any, ClassVar, cast
|
||||
|
||||
from rich.markup import escape as rich_escape
|
||||
from rich.text import Text
|
||||
@@ -26,7 +26,7 @@ from strix.llm.config import LLMConfig
|
||||
|
||||
|
||||
def escape_markup(text: str) -> str:
|
||||
return rich_escape(text)
|
||||
return cast("str", rich_escape(text))
|
||||
|
||||
|
||||
class ChatTextArea(TextArea): # type: ignore[misc]
|
||||
|
||||
Reference in New Issue
Block a user