From 03ebd6e237629fc82a1acdeefdbc70bf294f313e Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Sat, 12 Dec 2020 02:46:41 +0100 Subject: add type hint --- fuzzycat/verify.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- cgit v1.2.3