mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
mypy: assert Popen.stdout based on API, in tools/lint.
This commit is contained in:
committed by
Tim Abbott
parent
e772e89fe2
commit
f96f71e439
@@ -135,6 +135,7 @@ def run():
|
|||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.STDOUT)
|
stderr=subprocess.STDOUT)
|
||||||
|
|
||||||
|
assert p.stdout # use of subprocess.PIPE indicates non-None
|
||||||
for line in iter(p.stdout.readline, b''):
|
for line in iter(p.stdout.readline, b''):
|
||||||
print_err(name, color, line)
|
print_err(name, color, line)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user