.. _no-staticmethod-decorator:

no-staticmethod-decorator / R0203
=================================

**Message emitted:**

Consider using a decorator instead of calling staticmethod

**Description:**

*Used when a static method is defined without using the decorator syntax.*

**Problematic code:**

.. literalinclude:: /data/messages/n/no-staticmethod-decorator/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/n/no-staticmethod-decorator/good.py
   :language: python



Created by the `classes <https://github.com/PyCQA/pylint/blob/main/pylint/checkers/classes/class_checker.py>`__ checker.