raito.utils.configuration module

class raito.utils.configuration.RouterListStyle(*values)[исходный код]

Базовые классы: IntEnum

SQUARES = 0
CIRCLES = 1
DIAMONDS = 2
DIAMONDS_REVERSED = 3
class raito.utils.configuration.PaginationControls(previous: str = '◀️', next: str = '▶️')[исходный код]

Базовые классы: object

Параметры:
previous: str = '◀️'
next: str = '▶️'
class raito.utils.configuration.PaginationTextFormat(counter_template: str = '{current} / {total}')[исходный код]

Базовые классы: object

Параметры:

counter_template (str)

counter_template: str = '{current} / {total}'
class raito.utils.configuration.PaginationStyle(loop_navigation: bool = True, controls: raito.utils.configuration.PaginationControls = <factory>, text_format: raito.utils.configuration.PaginationTextFormat = <factory>, show_counter: bool = True)[исходный код]

Базовые классы: object

Параметры:
loop_navigation: bool = True
controls: PaginationControls
text_format: PaginationTextFormat
show_counter: bool = True
class raito.utils.configuration.RaitoConfiguration(*, router_list_style=RouterListStyle.DIAMONDS, role_manager=None, pagination_style=PaginationStyle(loop_navigation=True, controls=PaginationControls(previous='◀️', next='▶️'), text_format=PaginationTextFormat(counter_template='{current} / {total}'), show_counter=True))[исходный код]

Базовые классы: BaseModel

Параметры:
router_list_style: RouterListStyle
role_manager: RoleManager | None
pagination_style: PaginationStyle
class Config[исходный код]

Базовые классы: object

arbitrary_types_allowed = True
model_config = {'arbitrary_types_allowed': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].