aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-12-12 02:46:41 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-12-12 02:46:41 +0100
commit03ebd6e237629fc82a1acdeefdbc70bf294f313e (patch)
treeae7382af7d288031c70e14dddf5a8810cfc019fc
parent8d40abc51cb5dff365d088b238dd190278393112 (diff)
downloadfuzzycat-03ebd6e237629fc82a1acdeefdbc70bf294f313e.tar.gz
fuzzycat-03ebd6e237629fc82a1acdeefdbc70bf294f313e.zip
add type hint
-rw-r--r--fuzzycat/verify.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/fuzzycat/verify.py b/fuzzycat/verify.py
index 973ea13..4f5f97f 100644
--- a/fuzzycat/verify.py
+++ b/fuzzycat/verify.py
@@ -71,6 +71,7 @@ import json
import operator
import re
import sys
+from typing import Dict, Tuple
from glom import PathAccessError, glom
@@ -137,7 +138,7 @@ class GroupVerifier:
self.counter["total"] = sum(v for _, v in self.counter.items())
-def verify(a, b):
+def verify(a: Dict, b: Dict) -> Tuple[str, str]:
"""
Compare two entities (dicts), return tuple of match status and reason.