In PyCharm, whenever you declare a method that doesn't make use of the self
variable it gives you the warning
Method 'method_name' may be 'static'
I've come across this warning many times and most of the time I just ignore it. However, I was wondering if there is a conventional or pythonic way to handle it.
So basically, my question is what should I do when I come across this? Should I ignore it? Should I replace it with a static method (@staticmethod
)?