From e42079a4bd07a3dc44032e9ffdef6dbd06ab4051 Mon Sep 17 00:00:00 2001 From: kadarakos Date: Thu, 27 Oct 2022 17:12:33 +0000 Subject: [PATCH] type hint --- spacy/util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spacy/util.py b/spacy/util.py index 14556f349..5c7d6ee19 100644 --- a/spacy/util.py +++ b/spacy/util.py @@ -1774,6 +1774,7 @@ def require_annotation( def require_annotation_decorator(func: Callable) -> Callable: def func_with_require(doclike, *args, **kwargs) -> Any: + require_complete: Sequence[bool] missing = [] # Check for missing annotations for attr, complete in zip(annotations, require_complete):