Skip to content

FastApiAppLike

Base classes

Name Children Inherits
Protocol
typing
Base class for protocol classes.

⋔ Inheritance diagram

graph TD
  421398296["fastapi_types.FastApiAppLike"]
  1073422405["typing.Protocol"]
  3481597255["typing.Generic"]
  2751680898["builtins.object"]
  1073422405 --> 421398296
  3481597255 --> 1073422405
  2751680898 --> 3481597255

🛈 DocStrings

Bases: Protocol

Protocol for in-memory database-like objects.

Source code in src/toprompt/fastapi_types.py
4
5
6
7
8
@runtime_checkable
class FastApiAppLike(Protocol):
    """Protocol for in-memory database-like objects."""

    def openapi(self, *args, **kwargs) -> Any: ...

:fa-brands-github: Show source on GitHub