diff --git a/util/locale_database/cldr.py b/util/locale_database/cldr.py index c7237308c00..45db816c5ef 100644 --- a/util/locale_database/cldr.py +++ b/util/locale_database/cldr.py @@ -121,11 +121,12 @@ class CldrReader (object): 'They could be removed at the next major version.\n') # Check for duplicate entries in winIds: - last = ('', '', '') + last: tuple[str, str, str] = ('', '', '') winDup = {} for triple in sorted(winIds): if triple[:2] == last[:2]: winDup.setdefault(triple[:2], []).append(triple[-1]) + last = triple if winDup: joined = '\n\t'.join(f'{t}, {w}: ", ".join(ids)' for (w, t), ids in winDup.items())