from typing import Callable from pydantic import BaseModel class Command(BaseModel): cmd: str bind: Callable args: int optional: bool description: str