Browse Source

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

pull/14262/head
pre-commit-ci[bot] 9 months ago
parent
commit
786d059c35
  1. 4
      fastapi/dependencies/models.py
  2. 1
      fastapi/exceptions.py

4
fastapi/dependencies/models.py

@ -33,7 +33,9 @@ class Dependant:
use_cache: bool = True
path: Optional[str] = None
scope: Literal["function", "request"] = "request"
cache_key: Tuple[Optional[Callable[..., Any]], Tuple[str, ...], str] = field(init=False)
cache_key: Tuple[Optional[Callable[..., Any]], Tuple[str, ...], str] = field(
init=False
)
def __post_init__(self) -> None:
self.cache_key = (

1
fastapi/exceptions.py

@ -153,6 +153,7 @@ class DependencyScopeError(FastAPIError):
(narrower) scope.
"""
class ValidationException(Exception):
def __init__(self, errors: Sequence[Any]) -> None:
self._errors = errors

Loading…
Cancel
Save