1
0
mirror of synced 2024-06-03 04:48:02 +02:00

Silence a mypy's stupid warning

This commit is contained in:
jvoisin 2018-07-08 17:12:17 +02:00
parent f9bc022c96
commit ca01484126

View File

@ -6,9 +6,9 @@ import datetime
import zipfile import zipfile
from typing import Dict, Set, Pattern from typing import Dict, Set, Pattern
try: # protect against DoS try: # protect against DoS
from defusedxml import ElementTree as ET from defusedxml import ElementTree as ET # type: ignore
except ImportError: except ImportError:
import xml.etree.ElementTree as ET import xml.etree.ElementTree as ET # type: ignore
from . import abstract, parser_factory from . import abstract, parser_factory