FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Rephrase typing.assert_never docs by hauntsaninja · Pull Request #92061 · python/cpython · GitHub

/ cpython Public

Rephrase typing.assert_never docs - #92061

Merged
JelleZijlstra merged 2 commits into
python:mainfrom
hauntsaninja:typassert
Apr 30, 2022
Merged

Rephrase typing.assert_never docs#92061
JelleZijlstra merged 2 commits into
python:mainfrom
hauntsaninja:typassert

Conversation

hauntsaninja commented Apr 29, 2022
edited
Loading

Copy link
Copy Markdown
Contributor

This change is similar to that in #32069

The goal here is to reduce potential confusion between
assert_never(val) and assert False

This change is similar to that in python#32069

Copy link
Copy Markdown
Member

Maybe line 2361 could also be changed: "succeed" -> "pass a type check"?

AlexWaygood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Nice!

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL