Skip to content

Commit 1c73994

Browse files
author
µ
committed
rename bittensor/types.py to bittensor/bt_types.py to prevent mixups after pip install
Although it seems common to have types.py (e.g. scalecodec, torch, substrateinterface) this may lead to issues after applying pip install -e to a package, as is suggested for bittensor (see git grep 'pip install -e.* bittensor') Issues were observed where circular imports would arise as Python's native typing.py would include bittensor's types.py.
1 parent 776e9b4 commit 1c73994

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed
File renamed without changes.

bittensor/subtensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
unstake_extrinsic,
110110
unstake_multiple_extrinsic,
111111
)
112-
from .types import AxonServeCallParams, PrometheusServeCallParams
112+
from .bt_types import AxonServeCallParams, PrometheusServeCallParams
113113
from .utils import (
114114
U16_NORMALIZED_FLOAT,
115115
ss58_to_vec_u8,

0 commit comments

Comments
 (0)