.. _dict-init-mutate: dict-init-mutate / C3401 ======================== **Message emitted:** ``Declare all known key/values when initializing the dictionary.`` **Description:** *Dictionaries can be initialized with a single statement using dictionary literal syntax.* **Problematic code:** .. literalinclude:: /data/messages/d/dict-init-mutate/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/d/dict-init-mutate/good.py :language: python **Configuration file:** .. literalinclude:: /data/messages/d/dict-init-mutate/pylintrc :language: ini .. note:: This message is emitted by the optional :ref:`'dict-init-mutate'` checker, which requires the ``pylint.extensions.dict_init_mutate`` plugin to be loaded. Created by the `dict-init-mutate `__ checker.