mypy and formatting

This commit is contained in:
Will McGugan 2020-10-22 21:54:45 +01:00
parent 2daa3721ee
commit 396adbce32
2 changed files with 3 additions and 3 deletions

View File

@ -1060,7 +1060,7 @@ class Text(JupyterMixin):
blank_lines = 0 blank_lines = 0
for line in text.split(): for line in text.split():
match = re_indent.match(line.plain) match = re_indent.match(line.plain)
if not match.group(2): if not match or not match.group(2):
blank_lines += 1 blank_lines += 1
continue continue
indent = match.group(1) indent = match.group(1)