From 326b0811612945ddea758d217db6de94c60b62a1 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Tue, 26 Dec 2017 11:51:33 +0100 Subject: Add type annotations --- patternutils/match.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v1.3.1