Browse Source

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

pull/11634/head
pre-commit-ci[bot] 1 year ago
committed by Alex Couper
parent
commit
7a14e73e57
  1. 2
      fastapi/_compat.py
  2. 2
      fastapi/routing.py

2
fastapi/_compat.py

@ -144,7 +144,7 @@ if PYDANTIC_V2:
exclude_unset: bool = False,
exclude_defaults: bool = False,
exclude_none: bool = False,
context: Optional[Dict[str, Any]]= None,
context: Optional[Dict[str, Any]] = None,
) -> Any:
# What calls this code passes a value that already called
# self._type_adapter.validate_python(value)

2
fastapi/routing.py

@ -130,7 +130,7 @@ async def serialize_response(
exclude_defaults: bool = False,
exclude_none: bool = False,
is_coroutine: bool = True,
context: Optional[Dict[str, Any]]= None,
context: Optional[Dict[str, Any]] = None,
) -> Any:
if field:
errors = []

Loading…
Cancel
Save