Flake8: Fix F821 undefined name; to prevent introducting Mypy depedency

This commit is contained in:
Hugo 2019-01-30 11:54:12 +02:00
parent 187ba3f6e8
commit 6d0e4a838f

View File

@ -393,8 +393,6 @@ class PdfParser:
def __init__(self, filename=None, f=None,
buf=None, start_offset=0, mode="rb"):
# type: (PdfParser, str, file, Union[bytes, bytearray], int, str)
# -> None
if buf and f:
raise RuntimeError(
"specify buf or f or filename, but not both buf and f")