Skip to content

Commit ec19cd1

Browse files
authored
Merge pull request #30 from mdboom/fix-mypy
Fix mypy benchmark for CPython main
2 parents 8e69ddb + def530c commit ec19cd1

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

benchmarks/bm_mypy2/requirements.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
--no-binary=mypy
2-
mypy==0.961
3-
mypy-extensions==0.4.3
4-
--no-binary=typed-ast
5-
typed-ast==1.5.4
2+
mypy==1.13.0
3+
mypy-extensions==1.0.0
64
typing-extensions==4.2.0

benchmarks/bm_mypy2/run_benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _bench_mypy(loops=20, *, legacy=False):
4545
# so "elapsed" covers more than just how long main() takes.
4646
t0 = pyperf.perf_counter()
4747
try:
48-
main(None, devnull, devnull, TARGETS, clean_exit=True)
48+
main(args=TARGETS, stdout=devnull, stderr=devnull, clean_exit=True)
4949
except SystemExit:
5050
pass
5151
t1 = pyperf.perf_counter()

0 commit comments

Comments
 (0)