.. _keyword-arg-before-vararg:

keyword-arg-before-vararg / W1113
=================================

**Message emitted:**

Keyword argument before variable positional arguments list in the definition of %s function

**Description:**

*When defining a keyword argument before variable positional arguments, one can end up in having multiple values passed for the aforementioned parameter in case the method is called with keyword arguments.*

**Problematic code:**

.. literalinclude:: /data/messages/k/keyword-arg-before-vararg/bad.py
   :language: python

**Correct code:**

.. literalinclude:: /data/messages/k/keyword-arg-before-vararg/good.py
   :language: python



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