Skip to content

Commit 74f4965

Browse files
Update count_number_of_one_bits.py
1 parent 9f37a60 commit 74f4965

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

bit_manipulation/count_number_of_one_bits.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ def get_set_bits_count(number: int) -> int:
1616
>>> count_one_bits(-1)
1717
Traceback (most recent call last):
1818
...
19-
ValueError: the value of input must be positive
20-
>>> count_one_bits(1.1)
21-
Traceback (most recent call last):
22-
...
23-
TypeError: Input value must be a 'int' type
19+
ValueError: the value of input must be positive
2420
"""
2521
if number < 0:
2622
raise ValueError("the value of input must be positive")

0 commit comments

Comments
 (0)