plistlib: remove unused 'type: ignore' comment to appease mypy

This commit is contained in:
Cosimo Lupo 2021-01-25 17:42:19 +00:00
parent d47250dd15
commit 822d3bf261
No known key found for this signature in database
GPG Key ID: 179A8F0895A02F4F

View File

@ -543,7 +543,7 @@ def load(
if not hasattr(fp, "read"):
raise AttributeError("'%s' object has no attribute 'read'" % type(fp).__name__)
target = PlistTarget(use_builtin_types=use_builtin_types, dict_type=dict_type)
parser = etree.XMLParser(target=target) # type: ignore
parser = etree.XMLParser(target=target)
result = etree.parse(fp, parser=parser)
# lxml returns the target object directly, while ElementTree wraps
# it as the root of an ElementTree object