pr feedback

This commit is contained in:
Taylor Wilsdon
2026-02-08 16:09:37 -05:00
parent 464bd8090f
commit b6ead2e23c
3 changed files with 11 additions and 2 deletions

View File

@@ -311,6 +311,10 @@ def create_bullet_list_request(
# Add nesting level if specified
if nesting_level is not None:
if not isinstance(nesting_level, int):
raise ValueError("nesting_level must be an integer between 0 and 8")
if nesting_level < 0 or nesting_level > 8:
raise ValueError("nesting_level must be between 0 and 8")
request["createParagraphBullets"]["nestingLevel"] = nesting_level
return request