Browse Source

🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

pull/12529/head
pre-commit-ci[bot] 8 months ago
parent
commit
e39ad15667
  1. 4
      fastapi/dependencies/models.py
  2. 4
      fastapi/params.py
  3. 6
      fastapi/utils.py

4
fastapi/dependencies/models.py

@ -7,11 +7,11 @@ from typing import Any, Callable, List, Optional, Sequence, Tuple, Union, cast
from fastapi._compat import ModelField from fastapi._compat import ModelField
from fastapi.security.base import SecurityBase from fastapi.security.base import SecurityBase
from fastapi.types import ( from fastapi.types import (
DependencyScope,
EndpointDependencyCacheKey, EndpointDependencyCacheKey,
EndpointDependencyScope,
LifespanDependencyCacheKey, LifespanDependencyCacheKey,
DependencyScope,
LifespanDependencyScope, LifespanDependencyScope,
EndpointDependencyScope,
) )
from typing_extensions import TypeAlias from typing_extensions import TypeAlias

4
fastapi/params.py

@ -5,7 +5,7 @@ from typing import Any, Callable, Dict, List, Optional, Sequence, Union
from fastapi.openapi.models import Example from fastapi.openapi.models import Example
from pydantic.fields import FieldInfo from pydantic.fields import FieldInfo
from typing_extensions import Annotated, Literal, TypeAlias, deprecated from typing_extensions import Annotated, deprecated
from ._compat import ( from ._compat import (
PYDANTIC_V2, PYDANTIC_V2,
@ -13,7 +13,7 @@ from ._compat import (
Undefined, Undefined,
) )
from .exceptions import InvalidDependencyScope from .exceptions import InvalidDependencyScope
from .types import EndpointDependencyScope, DependencyScope from .types import DependencyScope, EndpointDependencyScope
_Unset: Any = Undefined _Unset: Any = Undefined

6
fastapi/utils.py

@ -6,16 +6,16 @@ from dataclasses import is_dataclass
from typing import ( from typing import (
TYPE_CHECKING, TYPE_CHECKING,
Any, Any,
Awaitable,
Callable,
Dict, Dict,
MutableMapping, MutableMapping,
Optional, Optional,
Set, Set,
Type, Type,
TypeVar,
Union, Union,
cast, cast,
Awaitable,
TypeVar,
Callable,
) )
from weakref import WeakKeyDictionary from weakref import WeakKeyDictionary

Loading…
Cancel
Save