From 04e46880c59c6f1cee5fe78def3a055be590a306 Mon Sep 17 00:00:00 2001 From: pablodanswer Date: Wed, 6 Nov 2024 09:52:05 -0800 Subject: [PATCH] update typing --- backend/danswer/db/engine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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