Skip to content

docs: fix dataclass indentation in expandable Python example - #7716

Open
DeepanshuPal wants to merge 1 commit into
mintlify:mainfrom
DeepanshuPal:docs/fix-expandable-python-example
Open

DeepanshuPal wants to merge 1 commit into
mintlify:mainfrom
DeepanshuPal:docs/fix-expandable-python-example

Conversation

@DeepanshuPal

@DeepanshuPal DeepanshuPal commented Oct 4, 2026 •

Copy link
Copy Markdown

Fixes #7715.

The expandable Python example raises IndentationError because the five Book dataclass fields are at column zero instead of inside the class.

Indents those fields without changing their types, defaults or the rest of the example. The original fails Python parsing; the corrected example compiles, runs main(), and passes add/search/checkout/return smoke tests. Mint build validation and git diff --check pass. The broken-link check did not finish within a bounded 25-second run, so I have not verified it.


Note

Low Risk
Documentation-only whitespace fix in a code sample; no runtime or product behavior changes.

Overview
Fixes the expandable Python sample in create/code.mdx so the Book @dataclass fields are indented under the class instead of at column zero.

That indentation mistake made the snippet invalid Python (IndentationError); only whitespace changes—field types, defaults, and the rest of the library example are unchanged.

Reviewed by Cursor Bugbot for commit 1e5f030. Bugbot is set up for automated code reviews on this repo. Configure here.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

create/code.mdx: expandable Python example raises IndentationError

1 participant