Skip to content

Commit

Permalink
Calm down pylint check for 3.12 constants
Browse files Browse the repository at this point in the history
Despite ``sys.version`` check, pylint raises the warning
with Python 3.11
  • Loading branch information
theirix committed Oct 15, 2023
1 parent 233b107 commit 720de79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pylint/checkers/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,7 @@ def check_for_consistent_string_delimiters(
# First, figure out which quote character predominates in the module
for tok_type, token, _, _, _ in tokens:
if sys.version_info[:2] >= (3, 12):
# pylint: disable=no-member,useless-suppression
if tok_type == tokenize.FSTRING_START:
inside_fstring = True
elif tok_type == tokenize.FSTRING_END:
Expand Down

0 comments on commit 720de79

Please sign in to comment.