This commit is contained in:
Dominik Moritz Roth 2024-08-15 19:03:56 +02:00
parent ebca76e680
commit 62a5b63d89

View File

@ -504,7 +504,7 @@ def insert_deep_dictionary(d: MutableMapping, t: tuple, value):
def append_deep_dictionary(d: MutableMapping, t: tuple, value):
if type(t) is tuple:
if len(t) is 1:
if len(t) == 1:
if t[0] not in d:
d[t[0]] = []
d[t[0]].append(value)