Skip to content

Commit

Permalink
Merge pull request #2526 from opentensor/feat/thewhaleking/new-sync-s…
Browse files Browse the repository at this point in the history
…ubstrate

[DO NOT MERGE] AsyncSubstrateInterface Overhaul (with Sync AsyncSubstrate)
  • Loading branch information
roman-opentensor authored Jan 11, 2025
2 parents b3c0ab7 + 3eead3a commit 110a281
Show file tree
Hide file tree
Showing 76 changed files with 6,983 additions and 14,469 deletions.
9 changes: 0 additions & 9 deletions bittensor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,10 @@
import warnings

from .core.settings import __version__, version_split, DEFAULTS, DEFAULT_NETWORK
from .core.async_subtensor import AsyncSubtensor
from .utils.btlogging import logging
from .utils.deprecated import *


async def async_subtensor(network: str = DEFAULT_NETWORK) -> AsyncSubtensor:
"""
Creates an initialised AsyncSubtensor object.
"""
async with AsyncSubtensor(network=network) as subtensor_:
return subtensor_


def __getattr__(name):
if name == "version_split":
warnings.warn(
Expand Down
Loading

0 comments on commit 110a281

Please sign in to comment.