-
First Check
Commit to Help
Example Codefrom fastapi import FastAPI
app = FastAPI()
@app.get("/")
async def read(bit: int):
CHUBBY_NUMBER = 2 ** (bit)
return {
"as_int": CHUBBY_NUMBER,
"as_str": str(CHUBBY_NUMBER),
} Description
This weird behaviour starts from Operating SystemLinux Operating System Detailstested on Ubuntu 22 and python:3.12 Docker image on WSL FastAPI Version0.110.2 Pydantic Version2.7.1 Python VersionPython 3.12.3 Additional ContextDefining a response model won't mitigate the problem. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
sorry, duplicate of #5464 |
Beta Was this translation helpful? Give feedback.
-
Form #5464 (comment)
|
Beta Was this translation helpful? Give feedback.
Form #5464 (comment)