MCPcopy Index your code
hub / github.com/python/cpython / make_syntax_error

Function make_syntax_error

Tools/cases_generator/lexer.py:243–250  ·  view source on GitHub ↗
(
    message: str,
    filename: str | None,
    line: int,
    column: int,
    line_text: str,
)

Source from the content-addressed store, hash-verified

241
242
243def make_syntax_error(
244 message: str,
245 filename: str | None,
246 line: int,
247 column: int,
248 line_text: str,
249) -> SyntaxError:
250 return SyntaxError(message, (filename, line, column, line_text))
251
252
253@dataclass(slots=True, frozen=True)

Callers 1

tokenizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…