
- Add requirements.txt file to git - Add project files to git - Fix linting issues in task.py and env.py - Update SQLAlchemy queries to use 'not' instead of '== False' - Fix import ordering in env.py
17 lines
533 B
Python
17 lines
533 B
Python
from typing import Any, Dict, List, Optional
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class HTTPError(BaseModel):
|
|
detail: str = Field(..., description="Error message")
|
|
|
|
|
|
class ValidationError(BaseModel):
|
|
loc: List[str] = Field(..., description="Location of validation error")
|
|
msg: str = Field(..., description="Validation error message")
|
|
type: str = Field(..., description="Validation error type")
|
|
|
|
|
|
class HTTPValidationError(BaseModel):
|
|
detail: List[ValidationError] = Field(..., description="Validation errors") |