inconsistent-quotes / W1405ΒΆ

Message emitted:

Quote delimiter %s is inconsistent with the rest of the file


Quote delimiters are not used consistently throughout a module (with allowances made for avoiding unnecessary escaping).

Problematic code:

import datetime

print('Current year: ',"%Y")) # [inconsistent-quotes]

Correct code:

import datetime

print("Current year: ","%Y"))

Configuration file:


Created by the string checker.