Skip to content

Commit ee9daeb

Browse files
Fix pre-commit errors (#96)
1 parent 754708d commit ee9daeb

File tree

2 files changed

+20159
-20154
lines changed

2 files changed

+20159
-20154
lines changed

manage_translation.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,17 @@ def get_resource_language_stats() -> list[ResourceLanguageStatistics]:
149149
return [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]:
153155
word_pairs = ((e.translated_words, e.total_words) for e in resources)
154156
string_pairs = ((e.translated_strings, e.total_strings) for e in resources)
155157
translated_total_words, total_words = (sum(counts) for counts in zip(*word_pairs))
156158
translated_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

160165
def get_number_of_translators():

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy