From 42e6e4a548e7be5ae13c54012aa054caf43d5df0 Mon Sep 17 00:00:00 2001 From: Michael Pisman Date: Thu, 7 Dec 2023 22:40:27 -0700 Subject: [PATCH] chore: Fixed mypy linting --- src/unipoll_api/mongo_db.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/unipoll_api/mongo_db.py b/src/unipoll_api/mongo_db.py index f317a07..61b280c 100644 --- a/src/unipoll_api/mongo_db.py +++ b/src/unipoll_api/mongo_db.py @@ -1,10 +1,11 @@ -import motor.motor_asyncio # type: ignore +from motor.core import AgnosticClient +from motor.motor_asyncio import AsyncIOMotorClient from unipoll_api import documents as Documents from unipoll_api.config import get_settings settings = get_settings() -client = motor.motor_asyncio.AsyncIOMotorClient( +client: AgnosticClient = AsyncIOMotorClient( host=settings.mongodb_url, uuidRepresentation="standard", )