Skip to content

Commit

Permalink
Fix type error (#4537)
Browse files Browse the repository at this point in the history
  • Loading branch information
cobaltt7 authored Dec 23, 2024
1 parent 6000d37 commit ed33205
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/blib2to3/pgen2/pgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,9 @@ def raise_error(self, msg: str, *args: Any) -> NoReturn:
msg = msg % args
except Exception:
msg = " ".join([msg] + list(map(str, args)))
raise SyntaxError(msg, (self.filename, self.end[0], self.end[1], self.line))
raise SyntaxError(
msg, (str(self.filename), self.end[0], self.end[1], self.line)
)


class NFAState:
Expand Down

0 comments on commit ed33205

Please sign in to comment.