Skip to content

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

Merged
ethanpalm merged 1 commit into
mintlify:mainfrom
DeepanshuPal:docs/fix-expandable-python-example
Oct 7, 2026
Merged

ethanpalm merged 1 commit into
mintlify:mainfrom
DeepanshuPal:docs/fix-expandable-python-example

Conversation

@DeepanshuPal

@DeepanshuPal DeepanshuPal commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

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.

@ethanpalm ethanpalm left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for creating the issue and PR, @DeepanshuPal. I'll get this merged once CI runs

@ethanpalm
ethanpalm merged commit 8191d1b into mintlify:main Oct 7, 2026
2 checks passed
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

2 participants