Skip to content

Translate content: expandable Python example indentation fix - #7745

Merged
ethanpalm merged 1 commit into
mainfrom
instinct/c7f20179
Oct 7, 2026
Merged

ethanpalm merged 1 commit into
mainfrom
instinct/c7f20179

Conversation

@mintlify

@mintlify mintlify Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Indents the Book dataclass fields in the expandable Python example on the Spanish, French and Chinese code block pages.
The fields sat at the same level as the class line, so the example raised an IndentationError in every locale.
Based on docs: fix dataclass indentation in expandable Python example, which made the same whitespace-only fix on the English page.


Note

Low Risk
Documentation-only whitespace changes in localized MDX; no runtime or application logic affected.

Overview
Fixes invalid Python in the expandable code sample on the Spanish (es/create/code.mdx), French (fr/create/code.mdx), and Chinese (zh/create/code.mdx) code-formatting docs by indenting the Book dataclass fields under class Book:.

Previously those attributes were aligned with the class line, which would raise an IndentationError if copied or run. The change mirrors the whitespace-only fix already applied on the English create/code.mdx page.

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

@mintlify

mintlify Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
mintlify 🟢 Ready View Preview Oct 7, 2026, 11:08 PM

@ethanpalm
ethanpalm merged commit 10e5f6b into main Oct 7, 2026
5 checks passed
@ethanpalm
ethanpalm deleted the instinct/c7f20179 branch October 7, 2026 23:18

This branch was successfully deployed

1 active deployment
staging — 2f8c858e Deployed Oct 7, 2026 by mintlify[bot]
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.

1 participant