mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-11 00:32:40 +03:00
fix: comparison operators should be defined for any other object
This commit is contained in:
parent
f0ee3ea10e
commit
0a80dc63da
|
@ -53,12 +53,12 @@ class Span:
|
||||||
kb_id: Union[str, int] = ...,
|
kb_id: Union[str, int] = ...,
|
||||||
span_id: Union[str, int] = ...,
|
span_id: Union[str, int] = ...,
|
||||||
) -> None: ...
|
) -> None: ...
|
||||||
def __lt__(self, other: Span) -> bool: ...
|
def __lt__(self, other: Any) -> bool: ...
|
||||||
def __le__(self, other: Span) -> bool: ...
|
def __le__(self, other: Any) -> bool: ...
|
||||||
def __eq__(self, other: Span) -> bool: ...
|
def __eq__(self, other: Any) -> bool: ...
|
||||||
def __ne__(self, other: Span) -> bool: ...
|
def __ne__(self, other: Any) -> bool: ...
|
||||||
def __gt__(self, other: Span) -> bool: ...
|
def __gt__(self, other: Any) -> bool: ...
|
||||||
def __ge__(self, other: Span) -> bool: ...
|
def __ge__(self, other: Any) -> bool: ...
|
||||||
def __hash__(self) -> int: ...
|
def __hash__(self) -> int: ...
|
||||||
def __len__(self) -> int: ...
|
def __len__(self) -> int: ...
|
||||||
def __repr__(self) -> str: ...
|
def __repr__(self) -> str: ...
|
||||||
|
|
Loading…
Reference in New Issue
Block a user