Skip to content

Commit bc4ce50

Browse files
fixed TypeError
1 parent 62d438c commit bc4ce50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sorts/bucket_sort.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def bucket_sort(my_list: list, bucket_count: int = 10) -> list:
7676
...
7777
TypeError: bucket_count must be an integer
7878
"""
79-
if type(bucket_count) != int:
79+
if type(bucket_count) is not int:
8080
raise TypeError("bucket_count must be an integer")
8181
if len(my_list) == 0 or bucket_count <= 0:
8282
return []

0 commit comments

Comments
 (0)