Skip to content

Commit e10f5ce

Browse files
committed
run-mypy.py: update main() prototype to drop unused initial argument
1 parent 75eacf8 commit e10f5ce

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎tests/run-mypy.py‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@
1515
"--disallow-untyped-globals"]
1616

1717
try:
18-
ret = main(None, stdout=sys.stdout, stderr=sys.stderr, args=["-p", "crash"] + common_args)
18+
ret = main(stdout=sys.stdout, stderr=sys.stderr, args=["-p", "crash"] + common_args)
1919
except TypeError:
20-
ret = main(None, args=["-p", "crash"] + common_args)
20+
try:
21+
ret = main(None, stdout=sys.stdout, stderr=sys.stderr, args=["-p", "crash"] + common_args)
22+
except TypeError:
23+
ret = main(None, args=["-p", "crash"] + common_args)
2124

2225
if ret:
2326
print("static checking failed.", file=sys.stderr)

0 commit comments

Comments
 (0)