Skip to content

Conversation

stroxler
Copy link
Contributor

This idea came up in the PEP discussion:
https://discuss.python.org/t/pep-698-a-typing-override-decorator/20839/4

We decided against including this, but as promised I am including the idea and potential upside as well as our rationale for not including it in the "Rejected Alternatives" section.

Checked code with

pre-commit run --files pep-0698.rst

This idea came up in the PEP discussion:
https://discuss.python.org/t/pep-698-a-typing-override-decorator/20839/4

We decided against it, but as promised I am including the idea
and potential upside as well as our rationale for not including
it in the "Rejected Alternatives" section.

Checked code with
```
pre-commit run --files pep-0698.rst
```
stroxler and others added 2 commits November 18, 2022 12:00
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
@JelleZijlstra JelleZijlstra merged commit 337df6b into python:main Nov 18, 2022
@CAM-Gerlach
Copy link
Member

Checked code with

pre-commit run --files pep-0698.rst

Just FYI, you can also run pre-commit install once, and then whenever you commit, it will automatically check the file(s) you've changed.

@stroxler stroxler deleted the 698-reject-specifying-ancestor-class branch November 18, 2022 22:34

- Supporting this would add complexity to the implementation of both
``@override`` and type checker support for it, so there would need to
be considerable value add.
Copy link

Choose a reason for hiding this comment

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

Shouldn't this be "added value"? I'm not sure I've ever heard "value add" in this way.

Copy link
Member

Choose a reason for hiding this comment

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

It's a bit business jargony, means the same as "added value".

"Added value" may be clearer, or even "benefits".

Copy link
Member

Choose a reason for hiding this comment

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

FWIW, I usually hear it with an indefinite article, i.e. "a considerable value add". From an editing perspective, if a change is going to be made, I agree with Hugo that it would be much clearer (especially to a wide, international audience) to just say "benefits".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed, this wasn't great wording and "benefits" would be clearer. I can put that change up

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.

5 participants