We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15879f8 commit 2176078Copy full SHA for 2176078
gendiff/gendiff.py
@@ -34,6 +34,7 @@ def get_list_of_dict_with_sign(data1, data2) -> list:
34
35
def sort_list(items: list):
36
def sort_by_rule(item: dict) -> str:
37
+ """The sign is changed to correctly sort items with the same key."""
38
if item['sign'] == '+':
39
sign = '-'
40
elif item['sign'] == '-':
@@ -46,6 +47,10 @@ def sort_by_rule(item: dict) -> str:
46
47
48
49
def make_str_from_list(items: list) -> str:
50
+ """
51
+ Type checking for the output of strings without quotes,
52
+ and for the correct output of True, False in the form of true, false.
53
54
list_of_str = ['{']
55
for item in items:
56
sign = item['sign']
0 commit comments