mirror of https://github.com/tiangolo/fastapi.git
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
This commit is contained in:
parent
850750d8d8
commit
e8b75a08ff
|
|
@ -1,4 +1,4 @@
|
|||
from typing import List, Mapping
|
||||
from typing import List
|
||||
|
||||
from fastapi import FastAPI, Query
|
||||
from fastapi.types import FFQuery
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ from typing import (
|
|||
Dict,
|
||||
FrozenSet,
|
||||
List,
|
||||
Mapping,
|
||||
Sequence,
|
||||
Set,
|
||||
Tuple,
|
||||
|
|
@ -18,7 +17,7 @@ from typing import (
|
|||
)
|
||||
|
||||
from fastapi.exceptions import RequestErrorModel
|
||||
from fastapi.types import IncEx, ModelNameMap, UnionType, FFQuery
|
||||
from fastapi.types import FFQuery, IncEx, ModelNameMap, UnionType
|
||||
from pydantic import BaseModel, create_model
|
||||
from pydantic.version import VERSION as PYDANTIC_VERSION
|
||||
from starlette.datastructures import UploadFile
|
||||
|
|
|
|||
|
|
@ -8,4 +8,4 @@ DecoratedCallable = TypeVar("DecoratedCallable", bound=Callable[..., Any])
|
|||
UnionType = getattr(types, "UnionType", Union)
|
||||
ModelNameMap = Dict[Union[Type[BaseModel], Type[Enum]], str]
|
||||
IncEx = Union[Set[int], Set[str], Dict[int, Any], Dict[str, Any]]
|
||||
FFQuery = Dict[str, Union[str, IncEx]]
|
||||
FFQuery = Dict[str, Union[str, IncEx]]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import http
|
||||
from typing import FrozenSet, List, Mapping, Optional, Union
|
||||
from typing import FrozenSet, List, Optional, Union
|
||||
|
||||
from fastapi import FastAPI, Path, Query
|
||||
from fastapi.types import FFQuery
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
from typing import List, Mapping
|
||||
from typing import List
|
||||
|
||||
import pytest
|
||||
from fastapi import FastAPI, Query
|
||||
from fastapi.types import FFQuery
|
||||
|
|
|
|||
Loading…
Reference in New Issue