fix types

This commit is contained in:
Waylon S. Walker 2025-04-09 14:43:06 -05:00
parent 15e01cbe70
commit f7d54b9a73

View file

@ -7,6 +7,7 @@ from pydantic import BaseModel
from fastapi import APIRouter from fastapi import APIRouter
from htmx_patterns.config import get_config from htmx_patterns.config import get_config
from typing import Union
zpages_router = APIRouter(tags=["zpages"]) zpages_router = APIRouter(tags=["zpages"])
@ -35,8 +36,8 @@ class PodInfo(BaseModel):
namespace: str namespace: str
node_name: str node_name: str
container_image: str container_image: str
start_time: str start_time: Union[str, datetime]
pod_uptime: str pod_uptime: Union[str, int]
class Ready(BaseModel): class Ready(BaseModel):