Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bittensor/_cli/commands/delegates.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def show_delegates( delegates: List['bittensor.DelegateInfo'], prev_delegates: L
str(i),
Text(delegate_name, style=f'link {delegate_url}'),
f'{delegate.hotkey_ss58:8.8}...',
str(len(delegate.nominators)),
str(len([nom for nom in delegate.nominators if nom[1].rao > 0])),
f'{owner_stake!s:13.13}',
f'{delegate.total_stake!s:13.13}',
rate_change_in_stake_str,
Expand Down
4 changes: 2 additions & 2 deletions bittensor/_cli/commands/overview.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def run( cli ):
return

# Pull neuron info for all keys.
neurons: Dict[str, List[bittensor.NeuronInfo, bittensor.Wallet]] = {}
neurons: Dict[str, List[bittensor.NeuronInfoLite, bittensor.Wallet]] = {}
block = subtensor.block

netuids = subtensor.get_all_subnet_netuids()
Expand Down Expand Up @@ -127,7 +127,7 @@ def run( cli ):
total_emission = 0

for nn, hotwallet in neurons[str(netuid)]:
nn: bittensor.NeuronInfo
nn: bittensor.NeuronInfoLite
uid = nn.uid
active = nn.active
stake = nn.total_stake.tao
Expand Down
4 changes: 2 additions & 2 deletions bittensor/_endpoint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# DEALINGS IN THE SOFTWARE.

import json
from types import SimpleNamespace
from typing import Union
import torch
import bittensor

Expand Down Expand Up @@ -63,7 +63,7 @@ def __new__(


@staticmethod
def from_neuron( neuron: 'bittensor.NeuronInfo' ) -> 'bittensor.Endpoint':
def from_neuron( neuron: Union['bittensor.NeuronInfo', 'bittensor.NeuronInfoLite'] ) -> 'bittensor.Endpoint':
"""
endpoint.assert_format(
version = neuron.version,
Expand Down
2 changes: 1 addition & 1 deletion bittensor/_metagraph/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def from_neurons( network: str, netuid: int, info: 'bittensor.SubnetInfo', neuro
netuid of the subnet for the metagraph.
info: (:obj:`SubnetInfo`, required):
SubnetInfo object for the metagraph, including the subnet's hyperparameters.
neurons: (:obj:`List[NeuronInfo]`, required):
neurons: (:obj:`Union[List[NeuronInfo], List[NeuronInfoLite]]`, required):
List of neurons to create metagraph from.
block: (:obj:`int`, required):
Block number at time of the metagraph.
Expand Down