Skip to content

gh-145526: Update typing.rst for type alias assignment syntax#145527

Closed
hyperkai wants to merge 3 commits intopython:mainfrom
hyperkai:hyperkai-patch-3
Closed

gh-145526: Update typing.rst for type alias assignment syntax#145527
hyperkai wants to merge 3 commits intopython:mainfrom
hyperkai:hyperkai-patch-3

Conversation

@hyperkai
Copy link

@hyperkai hyperkai commented Mar 5, 2026

@JelleZijlstra
Copy link
Member

This is not an augmented assignment. Augmented assignment refers to e.g. +=.

@AlexWaygood
Copy link
Member

I don't find this an improvement. The existing text seems clear to me, and I don't think a link to the language reference is necessary here.

@hyperkai
Copy link
Author

hyperkai commented Mar 5, 2026

I don't find this an improvement. The existing text seems clear to me, and I don't think a link to the language reference is necessary here.

Simple statement includes more than 10 statements, like expression statement, assignment statement, assert statement, pass statement, return statement, etc.

So, specifying it as assignment statement is better but up to you and if you don't like the link, I'll remove it, leaving just the text "assignment statement".

@AlexWaygood
Copy link
Member

The docs here are using the common English meaning of the adjective "simple". "Simple assignment" isn't a term of art here that needs to be validated against precise definitions in the language reference. The docs are just talking about assignments that are simple.

@AlexWaygood AlexWaygood closed this Mar 5, 2026
@AlexWaygood
Copy link
Member

Thanks for the PR, but we'll decline this one :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Type aliases section should use the specifc term "assignment statement" instead of the abstract term "simple assignment"

3 participants