mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 10:16:27 +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
|
from pydantic import BaseModel
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from pydantic import validator
|
from pydantic import validator # type: ignore
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from pydantic import field_validator as validator
|
from pydantic import field_validator as validator # type: ignore
|
||||||
|
|
||||||
from ..language import Language
|
from ..language import Language
|
||||||
from ..tokens import Doc, Token
|
from ..tokens import Doc, Token
|
||||||
|
|
Loading…
Reference in New Issue
Block a user