mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-06 13:20:20 +03:00
shorten return type
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
This commit is contained in:
parent
2957802682
commit
9a41081a26
|
@ -99,15 +99,7 @@ class Underscore:
|
|||
self, name: str
|
||||
) -> Union[
|
||||
Tuple[str, str, Optional[int], Optional[int]],
|
||||
Tuple[
|
||||
str,
|
||||
str,
|
||||
Optional[int],
|
||||
Optional[int],
|
||||
Optional[Union[str, int]],
|
||||
Optional[Union[str, int]],
|
||||
Optional[Union[str, int]],
|
||||
],
|
||||
Tuple[str, str, Optional[int], Optional[int], int, int, int],
|
||||
]:
|
||||
if hasattr(self, "_label"):
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue
Block a user