There was an error while loading. Please reload this page.
1 parent 62d438c commit bc4ce50Copy full SHA for bc4ce50
1 file changed
sorts/bucket_sort.py
@@ -76,7 +76,7 @@ def bucket_sort(my_list: list, bucket_count: int = 10) -> list:
76
...
77
TypeError: bucket_count must be an integer
78
"""
79
- if type(bucket_count) != int:
+ if type(bucket_count) is not int:
80
raise TypeError("bucket_count must be an integer")
81
if len(my_list) == 0 or bucket_count <= 0:
82
return []
0 commit comments