Replaced redundant database query with known fallback start word to fix mypy type narrowing.
CI / Formatting (push) Successful in 5s
CI / Linting (push) Successful in 5s
CI / Tests (push) Successful in 9s
CI / Type Checking (push) Successful in 11s
CI / Spelling (push) Successful in 5s

This commit is contained in:
2026-03-17 14:28:47 -04:00
parent 2d13dfb063
commit 56d3c36c7d
+1 -1
View File
@@ -114,7 +114,7 @@ async def generate(
# Seed the chain with a fallback sentence if the channel has no data yet.
if word is None:
await _ingest_sentence(db, channel_id, 0, "Hello world!")
word = await db.get_random_start_word(channel_id)
word = "Hello" # Known start word from the fallback sentence above.
parts: list[str] = []
parts.append(word)