# stdlib
from typing import Any
from typing import Optional

# third party
from nacl.signing import VerifyKey

# relative
from ... import UID
from ....abstract.node import AbstractNode
from .simple_messages import NodeRunnableMessageWithReply

from ......logger import info

class DoesObjectExistMessage(NodeRunnableMessageWithReply):

    __attr_allowlist__ = ["obj_id"]

    def __init__(self, obj_id: UID) -> None:
        self.obj_id = obj_id

    def run(self, node: AbstractNode, verify_key: Optional[VerifyKey] = None) -> bool:

        try:
            node.store[self.obj_id]  # type: ignore
            return True
        except Exception as e:
            info("Exception in DoesObjectExistMessage:" + str(e))
            return False

@@ -6,31 +6,8 @@
 lib%0A
-from typing import Any%0A
 from
@@ -30,16 +30,16 @@
 ptional%0A
+
 %0A# third
@@ -112,16 +112,46 @@
 ort UID%0A
+from ......logger import info%0A
 from ...
@@ -248,38 +248,8 @@
 ly%0A%0A
-from ......logger import info%0A
 %0Acla

Fix linting errors