Fix Python syntax errors in v2 documentation examples #103
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix Python syntax errors in v2 documentation examples
Summary
Fixes critical Python syntax errors in documentation examples that were using JavaScript object syntax instead of proper Python dictionary syntax. This affects all v2 Python code examples across the main documentation and all international language variants.
Key changes:
type: 'write'
→"type": "write"
)});
→})
)true
→True
)Files affected: 12 total files
snippets/v2/scrape/actions/python.mdx
snippets/{zh,es,fr,ja,pt-BR}/v2/scrape/actions/python.mdx
advanced-scraping-guide.mdx
and all language variantsReview & Testing Checklist for Human
Notes
Testing limitation: Local documentation build testing was blocked by a pre-existing mintlify dev server configuration error (invalid theme in docs.json), so changes couldn't be validated against the build system locally.
Linear ticket: ENG-3648
Requested by: Micah Stairs (@micahstairs)
Link to Devin run: https://app.devin.ai/sessions/3a54b008e95e49c0ad2597a25f38c58d