79703784

Date: 2025-07-16 17:17:06
Score: 0.5
Natty:
Report link

Try removing async and just leaving def root(): and add if __name__ == "__main__":

from fastapi import FastAPI

app = FastAPI()


@app.get("/")
def root():
    return {"message": "Hello World"}

if __name__ == "__main__":
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Yura Lons