types

Application types

Library module for type definitions to be used in the application.

class byte_bot.server.lib.types.SQLAlchemyModelT

Type variable for SQLAlchemy models.

alias of TypeVar(‘SQLAlchemyModelT’, bound=DeclarativeBase)

class byte_bot.server.lib.types.SQLAlchemyAsyncRepoServiceT

Type variable for SQLAlchemy async repository services.

alias of TypeVar(‘SQLAlchemyAsyncRepoServiceT’, bound=SQLAlchemyAsyncRepositoryService)

class byte_bot.server.lib.types.DataclassModelT

Type variable for dataclass models.

alias of TypeVar(‘DataclassModelT’, bound=DataclassProtocol)

byte_bot.server.lib.types.ModelT

Type alias for models.

alias of SQLAlchemyModelT | DataclassModelT

class byte_bot.server.lib.types.FilterTypeT

Type variable for filter types.

alias of TypeVar(‘FilterTypeT’, bound=BeforeAfter | OnBeforeAfter | CollectionFilter[Any] | LimitOffset | OrderBy | SearchFilter | NotInCollectionFilter[Any] | NotInSearchFilter | ExistsFilter | NotExistsFilter | ComparisonFilter | MultiFilter | FilterGroup)

class byte_bot.server.lib.types.ModelDTOT

Type variable for models.

alias of TypeVar(‘ModelDTOT’, bound=BaseModel)

class byte_bot.server.lib.types.DTOT

Type variable for DTOs.

alias of TypeVar(‘DTOT’, bound=DataclassProtocol | DeclarativeBase)

class byte_bot.server.lib.types.DTOFactoryT

Type variable for DTO factories.

alias of TypeVar(‘DTOFactoryT’, bound=DataclassDTO | SQLAlchemyDTO)

byte_bot.server.lib.types.ModelDictDTOT

Type alias for model or dict DTOs.

alias of dict[str, Any] | SQLAlchemyModelT | DataclassModelT | DTOData

byte_bot.server.lib.types.ModelDictListDTOT: TypeAlias = list[typing.Union[~SQLAlchemyModelT, ~DataclassModelT, dict[str, typing.Any]]] | list[dict[str, typing.Any]] | litestar.dto.data_structures.DTOData

Type alias for model or dict DTOs.

byte_bot.server.lib.types.Status

Type alias for health check status.

alias of Literal[‘online’, ‘offline’, ‘degraded’]