From 81540c516f656f92ca310a3ce5ecd07c7b02daab Mon Sep 17 00:00:00 2001 From: Synchon Mandal Date: Thu, 13 Jul 2023 13:48:00 +0200 Subject: [PATCH] chore: improve commentary in datagrabber.utils --- junifer/datagrabber/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/junifer/datagrabber/utils.py b/junifer/datagrabber/utils.py index a86cf04aa2..e641815eae 100644 --- a/junifer/datagrabber/utils.py +++ b/junifer/datagrabber/utils.py @@ -82,12 +82,12 @@ def validate_patterns(types: List[str], patterns: Dict[str, str]) -> None: msg="Length of `types` more than that of `patterns`.", klass=ValueError, ) - + # Missing type in patterns if any(x not in patterns for x in types): raise_error( msg="`patterns` must contain all `types`", klass=ValueError ) - + # Wildcard check in patterns if any("}*" in pattern for pattern in patterns.values()): raise_error( msg="`patterns` must not contain `*` following a replacement",