py-gidb/pygidb/types/api.py
2023-11-12 22:44:51 +03:00

13 lines
207 B
Python

from typing import Any
from pydantic import BaseModel
class ErrorData(BaseModel):
error_code: int
error_text: str
class Response(BaseModel):
error: bool = False
response: Any | ErrorData