diff --git a/backend/danswer/db/engine.py b/backend/danswer/db/engine.py index 2985a0784c0..343ca1f229c 100644 --- a/backend/danswer/db/engine.py +++ b/backend/danswer/db/engine.py @@ -9,7 +9,6 @@ from datetime import datetime from typing import Any from typing import ContextManager -from typing import Sentinel import jwt from fastapi import HTTPException @@ -324,7 +323,8 @@ async def get_async_session_with_tenant( yield session -_DEFAULT = Sentinel("_DEFAULT") +# Sentinel object to represent the default value +_DEFAULT = object() @contextmanager