Skip to content
Unverified Commit 9d05e150 authored by Varun Chawla's avatar Varun Chawla Committed by GitHub
Browse files

Docs: Expand preview style features documentation with examples (#4987)



* Docs: Expand preview style features documentation with examples

Adds detailed descriptions and code examples for preview style features
that previously only had single-line descriptions, addressing issue #4429.

Changes:
- Add dedicated section for `wrap_comprehension_in` feature:
  - Explanation of when and why comprehensions are wrapped
  - Examples with list comprehensions
  - Examples with dictionary comprehensions

- Add dedicated section for `simplify_power_operator_hugging` feature:
  - Explanation of power operator whitespace handling
  - Examples with simple expressions
  - Examples with split expressions

- Updated feature list to link to the new detailed sections

This brings the preview features documentation in line with the unstable
features documentation style, which already includes detailed sections
and examples for each feature.

Fixes #4429

* Add changelog entry for preview style docs expansion (#4987)

Co-Authored-By: default avatarClaude Opus 4.6 <noreply@anthropic.com>

* fix power operator example per review

---------

Co-authored-by: default avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 38b6d354
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment