.. _using-f-string-in-unsupported-version:

using-f-string-in-unsupported-version / W2601
=============================================

**Message emitted:**

F-strings are not supported by all versions included in the py-version setting

**Description:**

*Used when the py-version set by the user is lower than 3.6 and pylint encounters a f-string.*


**Correct code:**

.. literalinclude:: /data/messages/u/using-f-string-in-unsupported-version/good.py
   :language: python

**Additional details:**

You can help us make the doc better `by contributing <https://github.com/PyCQA/pylint/issues/5953>`_ !


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