From c03ac576a3b5e1e9a4a0c54c2ffd78626db738ea Mon Sep 17 00:00:00 2001 From: Max Rozentsveyg Date: Sat, 16 May 2020 22:21:03 -0400 Subject: [PATCH] Remove `type: ignore` --- pre_commit_hooks/check_xml.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pre_commit_hooks/check_xml.py b/pre_commit_hooks/check_xml.py index eddfdf9..59b4d59 100644 --- a/pre_commit_hooks/check_xml.py +++ b/pre_commit_hooks/check_xml.py @@ -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