From aca451acbcae3a09cb7b79e3ef5fb5bcf12eea27 Mon Sep 17 00:00:00 2001 From: Arc Date: Wed, 13 Nov 2024 10:49:02 +0000 Subject: [PATCH] GH mypy fail --- crud.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crud.py b/crud.py index 956c15a..dcfdd5a 100644 --- a/crud.py +++ b/crud.py @@ -8,7 +8,9 @@ async def create_eightball(data: EightBall) -> EightBall: - return await db.insert("eightball.maintable", data) + eightball = await db.insert("eightball.maintable", data) + assert eightball, "Newly created eightball couldn't be retrieved" + return eightball async def get_eightball(eightball_id: str) -> Optional[EightBall]: