mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2025-08-14 17:31:28 +08:00
Remove type: ignore
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user