From 0a80dc63dad6b5ae20c4e4b1c2c2882557067a68 Mon Sep 17 00:00:00 2001 From: Basile Dura Date: Mon, 22 May 2023 10:24:17 +0200 Subject: [PATCH] fix: comparison operators should be defined for any other object --- spacy/tokens/span.pyi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spacy/tokens/span.pyi b/spacy/tokens/span.pyi index 0cf91f950..b982eb810 100644 --- a/spacy/tokens/span.pyi +++ b/spacy/tokens/span.pyi @@ -53,12 +53,12 @@ class Span: kb_id: Union[str, int] = ..., span_id: Union[str, int] = ..., ) -> None: ... - def __lt__(self, other: Span) -> bool: ... - def __le__(self, other: Span) -> bool: ... - def __eq__(self, other: Span) -> bool: ... - def __ne__(self, other: Span) -> bool: ... - def __gt__(self, other: Span) -> bool: ... - def __ge__(self, other: Span) -> bool: ... + def __lt__(self, other: Any) -> bool: ... + def __le__(self, other: Any) -> bool: ... + def __eq__(self, other: Any) -> bool: ... + def __ne__(self, other: Any) -> bool: ... + def __gt__(self, other: Any) -> bool: ... + def __ge__(self, other: Any) -> bool: ... def __hash__(self) -> int: ... def __len__(self) -> int: ... def __repr__(self) -> str: ...