Fix type error (#4537)
This commit is contained in:
parent
6000d37f09
commit
ed33205579
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user