summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Fink2017-12-26 11:51:33 +0100
committerDennis Fink2017-12-26 11:51:33 +0100
commit326b0811612945ddea758d217db6de94c60b62a1 (patch)
tree6c77402f05f9b5b01bed3bccd1ec5692081b638f
parent88c6142fcd739ab5782afd0cd2d7a17756a8c489 (diff)
downloadpatternutils-326b0811612945ddea758d217db6de94c60b62a1.tar.gz
patternutils-326b0811612945ddea758d217db6de94c60b62a1.zip
Add type annotations
Diffstat (limited to '')
-rw-r--r--patternutils/match.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/patternutils/match.py b/patternutils/match.py
index 2589655..e4bf470 100644
--- a/patternutils/match.py
+++ b/patternutils/match.py
@@ -1,7 +1,7 @@
from typing import Pattern, Dict
-def apply(subject: str, regex_pattern: Pattern) -> Dict:
+def apply(subject: str, regex_pattern: Pattern) -> Dict[str, str]:
match = regex_pattern.search(subject)
if match is not None:
groupdict = match.groupdict()