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

This commit is contained in:
pre-commit-ci[bot] 2025-10-22 13:00:27 +00:00
parent 865927e914
commit 55931329eb
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ class CustomORJSONResponse(Response):
def render(self, content: Any) -> bytes:
import orjson
assert orjson is not None, "orjson must be installed"
return orjson.dumps(content, option=orjson.OPT_INDENT_2)

View File

@ -1,7 +1,6 @@
from typing import Any
import pytest
from fastapi import APIRouter, FastAPI
from fastapi.responses import HTMLResponse, JSONResponse, PlainTextResponse
from fastapi.testclient import TestClient
@ -12,6 +11,7 @@ class ORJSONResponse(JSONResponse):
def render(self, content: Any) -> bytes:
import orjson
return orjson.dumps(content)