Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
opendansor committed Jul 1, 2024
1 parent e4db609 commit 79457b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bittensor/utils/formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ def float_to_u64(value):
def u64_to_float(value):
# Ensure the input is within the expected range
if not (0 <= value < 18446744073709551615):
raise ValueError("Input value must be between 0 and 18446744073709551615 (2^64 - 1)")
raise ValueError(
"Input value must be between 0 and 18446744073709551615 (2^64 - 1)"
)

# Calculate the float representation
u64_max = 18446744073709551615
Expand Down

0 comments on commit 79457b3

Please sign in to comment.