Skip to content

Commit 2e04ce3

Browse files
committed
Add typing
1 parent a858f56 commit 2e04ce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def get_vendor_name(module: etree, model_data: ModuleData) -> ModuleData:
224224
return model_data
225225

226226

227-
def parse_escapes(text):
227+
def parse_escapes(text: str) -> str:
228228
"""Helper-function for get_vendor_name()."""
229229
fixed_escapes = re.sub(r'(?<!\\)(\\\\)*("|\\$)', r"\\\1\2", text)
230230
return ast.literal_eval(f'"{fixed_escapes}"')

0 commit comments

Comments
 (0)