Skip to content

Commit 110a281

Browse files
authored
Merge pull request #2526 from opentensor/feat/thewhaleking/new-sync-substrate
[DO NOT MERGE] AsyncSubstrateInterface Overhaul (with Sync AsyncSubstrate)
2 parents b3c0ab7 + 3eead3a commit 110a281

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+6983
-14469
lines changed

bittensor/__init__.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,10 @@
1818
import warnings
1919

2020
from .core.settings import __version__, version_split, DEFAULTS, DEFAULT_NETWORK
21-
from .core.async_subtensor import AsyncSubtensor
2221
from .utils.btlogging import logging
2322
from .utils.deprecated import *
2423

2524

26-
async def async_subtensor(network: str = DEFAULT_NETWORK) -> AsyncSubtensor:
27-
"""
28-
Creates an initialised AsyncSubtensor object.
29-
"""
30-
async with AsyncSubtensor(network=network) as subtensor_:
31-
return subtensor_
32-
33-
3425
def __getattr__(name):
3526
if name == "version_split":
3627
warnings.warn(

0 commit comments

Comments
 (0)