Skip to content

Commit

Permalink
Converting non-str to str for list compare
Browse files Browse the repository at this point in the history
  • Loading branch information
jyejare committed Apr 22, 2024
1 parent a22513b commit 885109f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion candore/modules/comparator.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _is_data_type_list_contains_dict(self, pre, post):
def _is_data_type_list(self, pre, post, unique_key=""):

def custom_key(elem):
return 'None' if elem is None else elem
return 'None' if elem is None else str(elem)

if not is_list_contains_dict(pre):
if sorted(pre, key=custom_key) != sorted(post, key=custom_key):
Expand Down

0 comments on commit 885109f

Please sign in to comment.