mirror of https://github.com/tiangolo/fastapi.git
cleanup
This commit is contained in:
parent
4f4491a14e
commit
1f676f1889
|
|
@ -42,9 +42,9 @@ Undefined = PydanticUndefined
|
|||
# pydantic.color.Color is deprecated since v2.0b3
|
||||
try:
|
||||
from pydantic_extra_types.color import Color
|
||||
except ImportError:
|
||||
from pydantic.color import ( # type: ignore[assignment] # pragma: no cover
|
||||
Color, # noqa: F401 # pragma: no cover
|
||||
except ImportError: # pragma: no cover
|
||||
from pydantic.color import ( # type: ignore[assignment]
|
||||
Color, # noqa: F401
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue