from typing import Optional @app.get("/student/check") async def chek_student(id: Optional[UUID]=None): .... ....