Skip to content

Document optional chaining#2722

Merged
plajjan merged 1 commit into
mainfrom
optional-chaining-guide
Apr 12, 2026
Merged

Document optional chaining#2722
plajjan merged 1 commit into
mainfrom
optional-chaining-guide

Conversation

@plajjan

@plajjan plajjan commented Apr 12, 2026

Copy link
Copy Markdown
Contributor

Add an optionals page under the types chapter and link it from the guide summary. The page introduces optionals like ?T, shows how is not None and isinstance establish the non-None case, walks through explicit checks for nested data, and then presents optional chaining as the shorter form when None should propagate. Beginner-only examples are included where the extra concrete detail helps.

Add an optionals page under the types chapter and link it from the guide
summary. The page introduces optionals like ?T, shows how is not None
and isinstance establish the non-None case, walks through explicit
checks for nested data, and then presents optional chaining as the
shorter form when None should propagate. Beginner-only examples are
included where the extra concrete detail helps.
@plajjan plajjan enabled auto-merge April 12, 2026 13:40
@plajjan plajjan merged commit 68b38c2 into main Apr 12, 2026
41 of 42 checks passed
@plajjan plajjan deleted the optional-chaining-guide branch April 12, 2026 14:09
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