From 03e97faeb2832a2a8515b72f7e3b1752d1e6532f Mon Sep 17 00:00:00 2001 From: Kirill Chernakov Date: Tue, 22 Oct 2024 00:16:04 +0400 Subject: [PATCH] fix: import for type checking --- keep/api/models/alert.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/keep/api/models/alert.py b/keep/api/models/alert.py index 3e9978ff5..5d471780e 100644 --- a/keep/api/models/alert.py +++ b/keep/api/models/alert.py @@ -4,7 +4,7 @@ import logging import uuid from enum import Enum -from typing import Any, Dict, List, Optional +from typing import Any, Dict, List, Optional, TYPE_CHECKING from uuid import UUID import pytz @@ -19,6 +19,9 @@ from sqlalchemy import desc from sqlmodel import col +if TYPE_CHECKING: + from keep.api.models.db.alert import Incident + logger = logging.getLogger(__name__)