pre-commit-ci-lite[bot]
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
4 additions and
8 deletions
-
fastapi/encoders.py
-
tests/test_jsonable_encoder.py
|
|
|
@ -1,6 +1,7 @@ |
|
|
|
import dataclasses |
|
|
|
import datetime |
|
|
|
from collections import defaultdict, deque |
|
|
|
from collections.abc import Mapping, Sequence |
|
|
|
from decimal import Decimal |
|
|
|
from enum import Enum |
|
|
|
from ipaddress import ( |
|
|
|
@ -18,13 +19,7 @@ from typing import ( |
|
|
|
Annotated, |
|
|
|
Any, |
|
|
|
Callable, |
|
|
|
Dict, |
|
|
|
List, |
|
|
|
Mapping, |
|
|
|
Optional, |
|
|
|
Sequence, |
|
|
|
Tuple, |
|
|
|
Type, |
|
|
|
Union, |
|
|
|
) |
|
|
|
from uuid import UUID |
|
|
|
@ -36,8 +31,8 @@ from pydantic import BaseModel |
|
|
|
from pydantic.color import Color |
|
|
|
from pydantic.networks import AnyUrl, NameEmail |
|
|
|
from pydantic.types import SecretBytes, SecretStr |
|
|
|
from pydantic_extra_types.coordinate import Coordinate |
|
|
|
from pydantic_core import PydanticUndefinedType |
|
|
|
from pydantic_extra_types.coordinate import Coordinate |
|
|
|
|
|
|
|
from ._compat import ( |
|
|
|
Url, |
|
|
|
|
|
|
|
@ -1,12 +1,13 @@ |
|
|
|
import warnings |
|
|
|
from collections import deque |
|
|
|
from collections.abc import Sequence |
|
|
|
from dataclasses import dataclass |
|
|
|
from datetime import datetime, timezone |
|
|
|
from decimal import Decimal |
|
|
|
from enum import Enum |
|
|
|
from math import isinf, isnan |
|
|
|
from pathlib import PurePath, PurePosixPath, PureWindowsPath |
|
|
|
from typing import Optional, Sequence, Union, TypedDict |
|
|
|
from typing import Optional, TypedDict, Union |
|
|
|
|
|
|
|
import pytest |
|
|
|
from fastapi._compat import Undefined |
|
|
|
|