mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-31 18:46:53 +00:00
Remove type: ignore
This commit is contained in:
parent
2322277afd
commit
c03ac576a3
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue