from typing import Protocol from pyopenapi import webmethod from pydantic import BaseModel class Models(Protocol): ...