Skip to content

Commit

Permalink
type ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmojaki committed Aug 31, 2023
1 parent bf98796 commit 9ef9bdd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions asttokens/mark_tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,13 +364,13 @@ def visit_joinedstr(self,
if sys.version_info >= (3, 12):
last = first_token
while True:
if util.match_token(last, token.FSTRING_START):
if util.match_token(last, token.FSTRING_START): # type: ignore[attr-defined]
count = 1
while count > 0:
last = self._code.next_token(last)
if util.match_token(last, token.FSTRING_START):
if util.match_token(last, token.FSTRING_START): # type: ignore[attr-defined]
count += 1
elif util.match_token(last, token.FSTRING_END):
elif util.match_token(last, token.FSTRING_END): # type: ignore[attr-defined]
count -= 1
last_token = last
last = self._code.next_token(last_token)
Expand Down

0 comments on commit 9ef9bdd

Please sign in to comment.