Skip to content

Commit 720de79

Browse files
committed
Calm down pylint check for 3.12 constants
Despite ``sys.version`` check, pylint raises the warning with Python 3.11
1 parent 233b107 commit 720de79

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pylint/checkers/strings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,7 @@ def check_for_consistent_string_delimiters(
841841
# First, figure out which quote character predominates in the module
842842
for tok_type, token, _, _, _ in tokens:
843843
if sys.version_info[:2] >= (3, 12):
844+
# pylint: disable=no-member,useless-suppression
844845
if tok_type == tokenize.FSTRING_START:
845846
inside_fstring = True
846847
elif tok_type == tokenize.FSTRING_END:

0 commit comments

Comments
 (0)