mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-09 14:44:52 +03:00
type hint
This commit is contained in:
parent
fc51c7abc4
commit
e42079a4bd
|
@ -1774,6 +1774,7 @@ def require_annotation(
|
||||||
|
|
||||||
def require_annotation_decorator(func: Callable) -> Callable:
|
def require_annotation_decorator(func: Callable) -> Callable:
|
||||||
def func_with_require(doclike, *args, **kwargs) -> Any:
|
def func_with_require(doclike, *args, **kwargs) -> Any:
|
||||||
|
require_complete: Sequence[bool]
|
||||||
missing = []
|
missing = []
|
||||||
# Check for missing annotations
|
# Check for missing annotations
|
||||||
for attr, complete in zip(annotations, require_complete):
|
for attr, complete in zip(annotations, require_complete):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user