Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for typing.final #3197

Closed
PCManticore opened this issue Oct 17, 2019 · 1 comment · Fixed by #5133
Closed

Add support for typing.final #3197

PCManticore opened this issue Oct 17, 2019 · 1 comment · Fixed by #5133
Labels
Checkers Related to a checker Good first issue Friendly and approachable by new contributors Hacktoberfest Help wanted 🙏 Outside help would be appreciated, good for new contributors
Milestone

Comments

@PCManticore
Copy link
Contributor

Python 3.8 added the concept of final methods which cannot be overridden: https://docs.python.org/3/library/typing.html#typing.final We should add a checker for that since it's almost trivial to detect violations of these using pylint.

@PCManticore PCManticore added Checkers Related to a checker Good first issue Friendly and approachable by new contributors labels Oct 17, 2019
@thecnoNSMB
Copy link

Also typing.Final, which is much the same but for data: https://docs.python.org/3/library/typing.html#typing.Final

@Pierre-Sassoulas Pierre-Sassoulas added the Help wanted 🙏 Outside help would be appreciated, good for new contributors label Mar 2, 2021
mbyrnepr2 added a commit to mbyrnepr2/pylint that referenced this issue Oct 9, 2021
- overridden-final-method
- subclassed-final-class

Closes pylint-dev#3197
mbyrnepr2 added a commit to mbyrnepr2/pylint that referenced this issue Oct 9, 2021
- overridden-final-method
- subclassed-final-class

Closes pylint-dev#3197
mbyrnepr2 added a commit to mbyrnepr2/pylint that referenced this issue Oct 9, 2021
- Move checker logic to its own method
- tuple -> list to be consistent with the existing module style
- Doc formatting tweak

    Closes pylint-dev#3197
mbyrnepr2 added a commit to mbyrnepr2/pylint that referenced this issue Oct 9, 2021
mbyrnepr2 added a commit to mbyrnepr2/pylint that referenced this issue Oct 9, 2021
mbyrnepr2 added a commit to mbyrnepr2/pylint that referenced this issue Oct 10, 2021
@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.12.0 milestone Oct 10, 2021
Pierre-Sassoulas pushed a commit that referenced this issue Oct 10, 2021
* Add checkers for typing.final for Python version 3.8 or later

- overridden-final-method
- subclassed-final-class

Closes #3197
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Checkers Related to a checker Good first issue Friendly and approachable by new contributors Hacktoberfest Help wanted 🙏 Outside help would be appreciated, good for new contributors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants