Remove type: ignore

This commit is contained in:
Max Rozentsveyg
2020-05-16 22:21:03 -04:00
parent 2322277afd
commit c03ac576a3

View File

@ -14,8 +14,7 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
for filename in args.filenames:
try:
with open(filename, 'rb') as xml_file:
# https://github.com/python/typeshed/pull/3725
xml.sax.parse(xml_file, handler) # type: ignore
xml.sax.parse(xml_file, handler)
except xml.sax.SAXException as exc:
print(f'{filename}: Failed to xml parse ({exc})')
retval = 1