From 0a454e3e77a2104044eb000265e58db6a2db7257 Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 12 Nov 2024 09:21:40 -0800 Subject: [PATCH] optimized import --- bittensor/utils/async_substrate_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bittensor/utils/async_substrate_interface.py b/bittensor/utils/async_substrate_interface.py index 46fcc9347..c3af69195 100644 --- a/bittensor/utils/async_substrate_interface.py +++ b/bittensor/utils/async_substrate_interface.py @@ -6,6 +6,7 @@ from hashlib import blake2b from typing import Optional, Any, Union, Callable, Awaitable, cast +import websockets from async_property import async_property from bittensor_wallet import Keypair from bt_decode import PortableRegistry, decode as decode_by_type_string, MetadataV15 @@ -20,7 +21,6 @@ BlockNotFound, ) from substrateinterface.storage import StorageKey -import websockets ResultHandler = Callable[[dict, Any], Awaitable[tuple[dict, bool]]]