Skip to content

Commit 8cb430b

Browse files
amanagrtimabbott
authored andcommitted
mypy: Make sure pyflakes.stderr is never None to satisfy mypy.
1 parent bc511cf commit 8cb430b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

zulint/linters.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ def run_pyflakes(files, options, suppress_patterns=[]):
3838
stdout=subprocess.PIPE,
3939
stderr=subprocess.PIPE,
4040
universal_newlines=True)
41-
assert pyflakes.stdout is not None # Implied by use of subprocess.PIPE
41+
42+
# Implied by use of subprocess.PIPE
43+
assert pyflakes.stdout is not None
44+
assert pyflakes.stderr is not None
4245

4346
def suppress_line(line):
4447
# type: (str) -> bool

0 commit comments

Comments
 (0)