W1405: inconsistent-quotes does not respect py-version #9113
Labels
False Positive 🦟
A message is emitted but nothing is wrong with the code
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
py-version
python 3.12
Milestone
Bug description
Since Python 3.12, the same quotes can be used in f-strings as were used for the outer string itself. Pylint correctly points out that inconsistent quote styles have been used if this is not done. However, it does not take into account the configured py-version, so it also warns for Python versions < 3.12 when the test is performed with Python 3.12.
Configuration
py-version=3.10
Command used
Pylint output
Expected behavior
As far as I understand it, pylint should only give this warning if the py-version is >= 3.12.
Pylint version
The text was updated successfully, but these errors were encountered: