mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
Add a 'type: ignore' in zulip_tools.py.
Subprocess.CalledProcessError's __init__ takes 4 arguments out of which 2 are optional. It is being passed 2 arguments in zulip_tools.py. However, python 3 stubs are incorrect and only 1 argument has been marked as default. See https://github.com/python/typeshed/pull/329. Add '# type: ignore' to that line so that mypy check passes in python 3 mode.
This commit is contained in:
committed by
Tim Abbott
parent
b44ae38bff
commit
5879e18bad
@@ -75,5 +75,5 @@ def run(args):
|
||||
process = subprocess.Popen(args)
|
||||
rc = process.wait()
|
||||
if rc:
|
||||
raise subprocess.CalledProcessError(rc, args)
|
||||
raise subprocess.CalledProcessError(rc, args) # type: ignore # https://github.com/python/typeshed/pull/329
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user