Skip to content

Commit b565a14

Browse files
simpler type-check
1 parent 29d433a commit b565a14

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/e2e_tests/utils/chain_interactions.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
from bittensor import Wallet
1818
from bittensor.core.async_subtensor import AsyncSubtensor
19-
from tests.e2e_tests.utils.e2e_test_utils import SyncSubtensor
2019

2120

2221
ANY_BALANCE = unittest.mock.Mock(
@@ -77,7 +76,7 @@ def sudo_set_hyperparameter_values(
7776
return response.is_success
7877

7978

80-
async def wait_epoch(subtensor: "SyncSubtensor" | "AsyncSubtensor", netuid: int = 1, **kwargs):
79+
async def wait_epoch(subtensor: "AsyncSubtensor", netuid: int = 1, **kwargs):
8180
"""
8281
Waits for the next epoch to start on a specific subnet.
8382
@@ -114,7 +113,7 @@ def next_tempo(current_block: int, tempo: int, netuid: int) -> int:
114113

115114
async def wait_interval(
116115
tempo: int,
117-
subtensor: "SyncSubtensor" | "AsyncSubtensor",
116+
subtensor: "AsyncSubtensor",
118117
netuid: int = 1,
119118
reporting_interval: int = 1,
120119
sleep: float = 0.25,
@@ -152,7 +151,7 @@ async def wait_interval(
152151

153152
@contextlib.asynccontextmanager
154153
async def use_and_wait_for_next_nonce(
155-
subtensor: "SyncSubtensor" | "AsyncSubtensor",
154+
subtensor: "AsyncSubtensor",
156155
wallet: "Wallet",
157156
sleep: float = 0.25,
158157
timeout: float = 15.0,

0 commit comments

Comments
 (0)