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

Detect deprecated decorators #4429

Closed
cdce8p opened this issue May 2, 2021 · 0 comments · Fixed by #4513
Closed

Detect deprecated decorators #4429

cdce8p opened this issue May 2, 2021 · 0 comments · Fixed by #4513
Labels
Enhancement ✨ Improvement to a component Help wanted 🙏 Outside help would be appreciated, good for new contributors
Milestone

Comments

@cdce8p
Copy link
Member

cdce8p commented May 2, 2021

Is your feature request related to a problem? Please describe

Pylint should be able to detect deprecated decorators, like abc.abstractclassmethod or abc.abstractstaticmethod.
https://docs.python.org/3/library/abc.html#abc.abstractclassmethod

Describe the solution you'd like

Emit a warning if a deprecated decorator is used. Optionally, suggest replacement.

Additional context

Implementation could be fairly similar to the existing checks for deprecated functions, classes and arguments.

--
@matusvalo Maybe this would be something you would like to work on?

@cdce8p cdce8p added the Enhancement ✨ Improvement to a component label May 2, 2021
@cdce8p cdce8p added the Help wanted 🙏 Outside help would be appreciated, good for new contributors label May 19, 2021
@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.9.0 milestone Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ✨ Improvement to a component Help wanted 🙏 Outside help would be appreciated, good for new contributors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants