summaryrefslogtreecommitdiff
path: root/libmat2/office.py
diff options
context:
space:
mode:
authorjvoisin2023-05-03 22:28:02 +0200
committerjvoisin2023-05-03 22:28:02 +0200
commit1b9608aecf25d5e58ee27b9b45afd7f77b883f8b (patch)
treebec20a8bc88dc81891a8c908090d3221cd0178b0 /libmat2/office.py
parent2ac8c24dac5431a39cdc091dec47ba594f509387 (diff)
Use proper type annotations instead of comments
Diffstat (limited to 'libmat2/office.py')
-rw-r--r--libmat2/office.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmat2/office.py b/libmat2/office.py
index f0ab404..16b20c9 100644
--- a/libmat2/office.py
+++ b/libmat2/office.py
@@ -148,7 +148,7 @@ class MSOfficeParser(ZipParser):
148 return False 148 return False
149 xml_data = zin.read('[Content_Types].xml') 149 xml_data = zin.read('[Content_Types].xml')
150 150
151 self.content_types = dict() # type: Dict[str, str] 151 self.content_types: Dict[str, str] = dict()
152 try: 152 try:
153 tree = ET.fromstring(xml_data) 153 tree = ET.fromstring(xml_data)
154 except ET.ParseError: 154 except ET.ParseError: