Skip to content

Commit af6396d

Browse files
authored
Merge pull request #2565 from opentensor/feat/roman/async-to-sync-via-wrapper
[SDK] Get rid of py-substrate-interface (DO NOT MERGE)
2 parents 85c294a + 59739f2 commit af6396d

Some content is hidden

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

57 files changed

+5027
-11543
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)