@@ -149,12 +149,17 @@ def get_resource_language_stats() -> list[ResourceLanguageStatistics]:
149149return [ResourceLanguageStatistics .from_api_entry (entry )for entry in resources ]
150150
151151
152- def progress_from_resources (resources :Iterable [ResourceLanguageStatistics ])-> tuple [float ,float ]:
152+ def progress_from_resources (
153+ resources :Iterable [ResourceLanguageStatistics ],
154+ )-> tuple [float ,float ]:
153155word_pairs = ((e .translated_words ,e .total_words )for e in resources )
154156string_pairs = ((e .translated_strings ,e .total_strings )for e in resources )
155157translated_total_words ,total_words = (sum (counts )for counts in zip (* word_pairs ))
156158translated_total_strs ,total_strs = (sum (counts )for counts in zip (* string_pairs ))
157- return translated_total_words / total_words * 100 ,translated_total_strs / total_strs * 100
159+ return (
160+ translated_total_words / total_words * 100 ,
161+ translated_total_strs / total_strs * 100 ,
162+ )
158163
159164
160165def get_number_of_translators ():