mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-06 21:30:22 +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 func_with_require(doclike, *args, **kwargs) -> Any:
|
||||
require_complete: Sequence[bool]
|
||||
missing = []
|
||||
# Check for missing annotations
|
||||
for attr, complete in zip(annotations, require_complete):
|
||||
|
|
Loading…
Reference in New Issue
Block a user