We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09de477 commit 5f13fcdCopy full SHA for 5f13fcd
bittensor/utils/balance.py
@@ -862,10 +862,10 @@ def check_balance_amount(amount: Optional[Balance]) -> None:
862
amount: The value to validate.
863
864
Returns:
865
- None if amount is Balance instance or None, otherwise raise error.
+ None: Always returns None if validation passes.
866
867
Raises:
868
- BalanceTypeError: If `amount` is not an instance of Balance.
+ BalanceTypeError: If amount is not a Balance instance and not None.
869
"""
870
if amount is None:
871
return None
0 commit comments