Skip to content

Commit

Permalink
rename bittensor/types.py to bittensor/bt_types.py to prevent mixups …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
µ committed Sep 3, 2024
1 parent 776e9b4 commit 1c73994
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
File renamed without changes.
2 changes: 1 addition & 1 deletion bittensor/subtensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
unstake_extrinsic,
unstake_multiple_extrinsic,
)
from .types import AxonServeCallParams, PrometheusServeCallParams
from .bt_types import AxonServeCallParams, PrometheusServeCallParams
from .utils import (
U16_NORMALIZED_FLOAT,
ss58_to_vec_u8,
Expand Down

0 comments on commit 1c73994

Please sign in to comment.