|
1 |
| -# The MIT License (MIT) |
2 |
| -# Copyright © 2024 Opentensor Foundation |
3 |
| -# |
4 |
| -# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated |
5 |
| -# documentation files (the “Software”), to deal in the Software without restriction, including without limitation |
6 |
| -# the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, |
7 |
| -# and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
8 |
| -# |
9 |
| -# The above copyright notice and this permission notice shall be included in all copies or substantial portions of |
10 |
| -# the Software. |
11 |
| -# |
12 |
| -# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO |
13 |
| -# THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
14 |
| -# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION |
15 |
| -# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
16 |
| -# DEALINGS IN THE SOFTWARE. |
17 |
| - |
18 | 1 | import warnings
|
19 | 2 |
|
20 | 3 | from .core.settings import __version__, version_split, DEFAULTS, DEFAULT_NETWORK
|
21 |
| -from .core.async_subtensor import AsyncSubtensor |
22 | 4 | from .utils.btlogging import logging
|
23 |
| -from .utils.deprecated import * |
24 |
| - |
25 |
| - |
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_ |
| 5 | +from .utils.easy_imports import * |
32 | 6 |
|
33 | 7 |
|
34 | 8 | def __getattr__(name):
|
|
0 commit comments