From d557928feec047a167e6850f29769f806fc51cc1 Mon Sep 17 00:00:00 2001 From: Seaswimmer Date: Sat, 25 May 2024 17:58:22 -0400 Subject: [PATCH] fix(speedtest): another pydantic fix --- speedtest/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/speedtest/models.py b/speedtest/models.py index cce2ebb..89b520e 100644 --- a/speedtest/models.py +++ b/speedtest/models.py @@ -62,11 +62,11 @@ class Server(BaseModel): port: int ip: str -class Result: +class Result(BaseModel): id: str url: str persisted: bool @property - def image(self): + def image(self) -> str: return self.url + ".png"