diff options
Diffstat (limited to 'generalresearch/models/legacy/api_status.py')
| -rw-r--r-- | generalresearch/models/legacy/api_status.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generalresearch/models/legacy/api_status.py b/generalresearch/models/legacy/api_status.py index 8241eca..0422191 100644 --- a/generalresearch/models/legacy/api_status.py +++ b/generalresearch/models/legacy/api_status.py @@ -1,6 +1,6 @@ from __future__ import annotations -from typing import Literal, Optional +from typing import Literal from pydantic import BaseModel, Field @@ -14,7 +14,7 @@ class StatusResponse(BaseModel): status: Literal["success", "error"] = Field( description="The status of the API response.", examples=["success"] ) - msg: Optional[str] = Field( + msg: str | None = Field( description="An optional message, if the status is error.", examples=[""], default=None, |
