From 64282d661fa73ebc34eb6d108902bb48eb84dea3 Mon Sep 17 00:00:00 2001 From: Danil D Date: Wed, 4 Oct 2023 14:26:37 +0300 Subject: [PATCH] fix annotations for SmartAppToMessage --- smart_kit/message/smartapp_to_message.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/smart_kit/message/smartapp_to_message.py b/smart_kit/message/smartapp_to_message.py index 3ab1a35d..067c2547 100644 --- a/smart_kit/message/smartapp_to_message.py +++ b/smart_kit/message/smartapp_to_message.py @@ -1,14 +1,18 @@ +from __future__ import annotations + from functools import cached_property -from typing import Iterable, Optional, List +from typing import TYPE_CHECKING, Iterable, Optional, List import json from copy import copy -from core.basic_models.actions.command import Command from core.utils.masking_message import masking -from core.message.msg_validator import MessageValidator -from smart_kit.request.kafka_request import SmartKitKafkaRequest from smart_kit.utils import SmartAppToMessage_pb2 +if TYPE_CHECKING: + from core.basic_models.actions.command import Command + from core.message.msg_validator import MessageValidator + from smart_kit.request.kafka_request import SmartKitKafkaRequest + class SmartAppToMessage: ROOT_NODES_KEY = "root_nodes"