From 7b5b534ce7a60c99a39350494a6638a07dd86810 Mon Sep 17 00:00:00 2001 From: Stephen Eisenhauer Date: Fri, 26 Sep 2025 11:46:19 -0700 Subject: [PATCH] Increase limits for rich_text_list indent and offset After playing a bit with https://app.slack.com/block-kit-builder/, it seems that the true indentation limit is 8 (not 6) and that `offset` doesn't really have an upper bound (it stops me after `100000000000000000`, but I think the default max in the `Ints` validator is plenty). --- blockkit/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blockkit/core.py b/blockkit/core.py index 99b2dda..03a0f23 100644 --- a/blockkit/core.py +++ b/blockkit/core.py @@ -2843,10 +2843,10 @@ def add_element(self, element: RichTextSection) -> Self: return self._add_field_value("elements", element) # type: ignore[attr-defined] def indent(self, indent: int | None) -> Self: - return self._add_field("indent", indent, validators=[Typed(int), Ints(max=6)]) + return self._add_field("indent", indent, validators=[Typed(int), Ints(max=8)]) def offset(self, offset: int | None) -> Self: - return self._add_field("offset", offset, validators=[Typed(int), Ints(max=6)]) + return self._add_field("offset", offset, validators=[Typed(int), Ints()]) class RichTextPreformatted(Component, RichTextElementsMixin, RichBorderMixin):