Skip to content

Commit 495bfb5

Browse files
committed
Reduce direct requirements, and import exceptions for catching from async-substrate-interface
1 parent d3ed955 commit 495bfb5

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

bittensor_cli/cli.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,17 @@
1515
import rich
1616
import typer
1717
import numpy as np
18-
from async_substrate_interface.errors import SubstrateRequestException
18+
from async_substrate_interface.errors import (
19+
SubstrateRequestException,
20+
ConnectionClosed,
21+
InvalidHandshake,
22+
)
1923
from bittensor_wallet import Wallet
2024
from rich import box
2125
from rich.prompt import Confirm, FloatPrompt, Prompt, IntPrompt
2226
from rich.table import Column, Table
2327
from rich.tree import Tree
2428
from typing_extensions import Annotated
25-
from websockets import ConnectionClosed, InvalidHandshake
2629
from yaml import safe_dump, safe_load
2730

2831
from bittensor_cli.src import (

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ requires-python = ">=3.9,<3.14"
1616
dependencies = [
1717
"wheel",
1818
"async-property==0.2.2",
19-
"async-substrate-interface>=1.0.8",
19+
"async-substrate-interface>=1.0.9",
2020
"aiohttp~=3.10.2",
2121
"backoff~=2.2.1",
2222
"GitPython>=3.0.0",
@@ -31,7 +31,6 @@ dependencies = [
3131
"rich>=13.7,<15.0",
3232
"scalecodec==1.2.11",
3333
"typer>=0.12,<0.16",
34-
"websockets>=14.1,<16.0",
3534
"bittensor-wallet>=3.0.7",
3635
"plotille>=5.0.0",
3736
"pywry>=0.6.2",

0 commit comments

Comments
 (0)