From 1c73994f5ff9cbc8e381309f7be07186f6a03ba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=B5?= Date: Wed, 14 Aug 2024 09:42:33 +0000 Subject: [PATCH] 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. --- bittensor/{types.py => bt_types.py} | 0 bittensor/subtensor.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename bittensor/{types.py => bt_types.py} (100%) diff --git a/bittensor/types.py b/bittensor/bt_types.py similarity index 100% rename from bittensor/types.py rename to bittensor/bt_types.py diff --git a/bittensor/subtensor.py b/bittensor/subtensor.py index ac22a3a14d..cc8f8d10c8 100644 --- a/bittensor/subtensor.py +++ b/bittensor/subtensor.py @@ -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,