diff options
| author | Dennis Fink | 2017-12-26 11:51:33 +0100 |
|---|---|---|
| committer | Dennis Fink | 2017-12-26 11:51:33 +0100 |
| commit | 326b0811612945ddea758d217db6de94c60b62a1 (patch) | |
| tree | 6c77402f05f9b5b01bed3bccd1ec5692081b638f | |
| parent | 88c6142fcd739ab5782afd0cd2d7a17756a8c489 (diff) | |
| download | patternutils-326b0811612945ddea758d217db6de94c60b62a1.tar.gz patternutils-326b0811612945ddea758d217db6de94c60b62a1.zip | |
Add type annotations
| -rw-r--r-- | patternutils/match.py | 2 |
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() |
