Merge pull request #481 from mxr/rm-type-ignore

Remove `type: ignore`
This commit is contained in:
Anthony Sottile 2020-05-16 19:26:32 -07:00 committed by GitHub
commit 3d379a962d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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