widen type to iterable

This commit is contained in:
svlandeg 2023-07-06 18:02:13 +02:00
parent e79ade4252
commit 975e9d44f4

View File

@ -1,4 +1,4 @@
from typing import Any, Callable, Dict, Iterable, List, Optional, Sequence, Tuple
from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple
from ..tokens import Doc, Span
from ..vocab import Vocab
@ -47,10 +47,10 @@ class Example:
def get_aligned_parse(self, projectivize=True): ...
def get_aligned_sent_starts(self): ...
def get_aligned_spans_x2y(
self, x_spans: Sequence[Span], allow_overlap=False
self, x_spans: Iterable[Span], allow_overlap=False
) -> List[Span]: ...
def get_aligned_spans_y2x(
self, y_spans: Sequence[Span], allow_overlap=False
self, y_spans: Iterable[Span], allow_overlap=False
) -> List[Span]: ...
def get_aligned_ents_and_ner(self) -> Tuple[List[Span], List[str]]: ...
def get_aligned_ner(self) -> List[str]: ...