Fix type error (#4537)

This commit is contained in:
cobalt 2024-12-23 00:19:40 -06:00 committed by GitHub
parent 6000d37f09
commit ed33205579
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: