Skip to content

Made proposed change to the typing spec with regard to NoReturn and…#1570

Merged
JelleZijlstra merged 1 commit intopython:mainfrom
erictraut:no_return
Jan 12, 2024
Merged

Made proposed change to the typing spec with regard to NoReturn and…#1570
JelleZijlstra merged 1 commit intopython:mainfrom
erictraut:no_return

Conversation

@erictraut
Copy link
Collaborator

… where it can be used.

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, I have many existing use-cases for NoReturn in different contexts. I think that making it not-the-same-as Never is aсtually an unneeded complexity.

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! The phrasing might be read as implying some sort of stylistic preference, curious if that was intentional

@erictraut
Copy link
Collaborator Author

The phrasing might be read as implying some sort of stylistic preference, curious if that was intentional

Not really. The intention was to try to give some background explanation for why there are two ways to spell the same type — and where each has typically been used. If you have a suggestion for how to improve the wording, let me know.

@JelleZijlstra JelleZijlstra merged commit 071c685 into python:main Jan 12, 2024
@JelleZijlstra
Copy link
Member

Merged as this has been approved by all Council members. I think the wording is fine, but we can tweak it in a follow-up PR if desired.

@erictraut erictraut deleted the no_return branch April 14, 2024 05:34
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.

6 participants