I recently used pycharm and sonarqube to review my code. Both tools suggested to update a lot of methods such as get_success_url
which are not using self
in their body to use the @staticmethod
decorator.
I totally understand why but I feel it is almost pointless. Regarding performance, I'm not sure it will be that helpful. Moreover, these are often overridden django methods. Can I safely use that decorator or it it so pointless it's not worth the time to update?