mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 02:06:31 +03:00
add type ignore
This commit is contained in:
parent
fca1f3d840
commit
52342fc741
|
@ -4,9 +4,9 @@ from typing import Callable, List, Optional, Union
|
|||
from pydantic import BaseModel
|
||||
|
||||
try:
|
||||
from pydantic import validator
|
||||
from pydantic import validator # type: ignore
|
||||
except ImportError:
|
||||
from pydantic import field_validator as validator
|
||||
from pydantic import field_validator as validator # type: ignore
|
||||
|
||||
from ..language import Language
|
||||
from ..tokens import Doc, Token
|
||||
|
|
Loading…
Reference in New Issue
Block a user