PyCharm 提示 Method 'xxx' may be 'static'

原因在于这个方法本可以写成静态方法,但我们把它写成类方法了(就是没有必要写成类方法,因为在方法中并未使用这个类 self)


PyCharm 提示 Method 'xxx' may be 'static'
https://wonderhoi.com/2025/03/25/PyCharm-提示-Method-xxx-may-be-static/
作者
wonderhoi
发布于
2025年3月25日
许可协议