@@ -184,7 +184,7 @@ def format_difference(compare: Iterable[Result], base: Iterable[Result]) -> str:
184184 return s
185185
186186
187- def report_larger_than_original (results_dir : str , python_versions : str , minifier_sha : str ) -> str :
187+ def report_larger_than_original (results_dir : str , python_versions : list [ str ] , minifier_sha : str ) -> str :
188188 yield '''
189189## Larger than original
190190
@@ -203,7 +203,7 @@ def report_larger_than_original(results_dir: str, python_versions: str, minifier
203203 yield f'| { entry .corpus_entry } | { entry .original_size } | { entry .minified_size } ({ entry .minified_size - entry .original_size :+} ) |'
204204
205205
206- def report_unstable (results_dir : str , python_versions : str , minifier_sha : str ) -> str :
206+ def report_unstable (results_dir : str , python_versions : list [ str ] , minifier_sha : str ) -> str :
207207 yield '''
208208## Unstable
209209
@@ -222,7 +222,7 @@ def report_unstable(results_dir: str, python_versions: str, minifier_sha: str) -
222222 yield f'| { entry .corpus_entry } | { python_version } | { entry .original_size } |'
223223
224224
225- def report_exceptions (results_dir : str , python_versions : str , minifier_sha : str ) -> str :
225+ def report_exceptions (results_dir : str , python_versions : list [ str ] , minifier_sha : str ) -> str :
226226 yield '''
227227## Exceptions
228228
@@ -247,7 +247,7 @@ def report_exceptions(results_dir: str, python_versions: str, minifier_sha: str)
247247 yield ' None | | |'
248248
249249
250- def report_larger_than_base (results_dir : str , python_versions : str , minifier_sha : str , base_sha : str ) -> str :
250+ def report_larger_than_base (results_dir : str , python_versions : list [ str ] , minifier_sha : str , base_sha : str ) -> str :
251251 yield '''
252252## Top 10 Larger than base
253253
@@ -277,7 +277,7 @@ def report_larger_than_base(results_dir: str, python_versions: str, minifier_sha
277277 yield '| N/A | N/A | N/A |'
278278
279279
280- def report_slowest (results_dir : str , python_versions : str , minifier_sha : str ) -> str :
280+ def report_slowest (results_dir : str , python_versions : list [ str ] , minifier_sha : str ) -> str :
281281 yield '''
282282## Top 10 Slowest
283283
@@ -368,7 +368,7 @@ def report(results_dir: str, minifier_ref: str, minifier_sha: str, base_ref: str
368368 yield from report_larger_than_base (results_dir , ['3.13' ], minifier_sha , base_sha )
369369 yield from report_slowest (results_dir , ['3.13' ], minifier_sha )
370370 yield from report_unstable (results_dir , ['2.7' , '3.3' , '3.4' , '3.5' , '3.6' , '3.7' , '3.8' , '3.9' , '3.10' , '3.11' , '3.12' , '3.13' ], minifier_sha )
371- yield from report_exceptions (results_dir , ['3.6' , '3.7' , '3.8' , '3.9' , '3.10' , '3.11' , '3.12' , '3.13' ], minifier_sha )
371+ yield from report_exceptions (results_dir , ['2.7' , '3.3' , '3.4' , '3.5' , ' 3.6' , '3.7' , '3.8' , '3.9' , '3.10' , '3.11' , '3.12' , '3.13' ], minifier_sha )
372372
373373
374374def main ():
0 commit comments