How do you mark a class as deprecated?
What is the proper way to get pycharm to mark a class as being deprecated? I've seen functions and methods get crossed out, but I can't seem to get classes to appear with the strike through.
Anyone have insight as to possible Preferences settings or code changes to make this possible?
Please sign in to leave a comment.
Hi, I haven't found an existing request for it, so I created a new one: https://youtrack.jetbrains.com/issue/PY-52722
Feel free to vote.
You can also vote for the deprecation decorator support: https://youtrack.jetbrains.com/issue/PY-25798
The reason to not erase a class and deprecate instead is to adhere to some "politeness policies" when your code is an estabished API and then is consumed by third parties. If you deprecate instead of erase, you give consumers a life cycle policy (e.g., maintenance and existence of the classes until version X.X) in order to allow them to plan a proper migration to your new API.
prepaidgiftbalance.com