Skip to content

Commit

Permalink
Add missing 3.13 source kw-only param to `code.InteractiveInterpreter…
Browse files Browse the repository at this point in the history
….showsyntaxerror` (#12792)
  • Loading branch information
Avasam authored Oct 12, 2024
1 parent 9f8ee52 commit 352cfc9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion stdlib/code.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ class InteractiveInterpreter:
def __init__(self, locals: Mapping[str, Any] | None = None) -> None: ...
def runsource(self, source: str, filename: str = "<input>", symbol: str = "single") -> bool: ...
def runcode(self, code: CodeType) -> None: ...
def showsyntaxerror(self, filename: str | None = None) -> None: ...
if sys.version_info >= (3, 13):
def showsyntaxerror(self, filename: str | None = None, *, source: str = "") -> None: ...
else:
def showsyntaxerror(self, filename: str | None = None) -> None: ...

def showtraceback(self) -> None: ...
def write(self, data: str) -> None: ...

Expand Down

0 comments on commit 352cfc9

Please sign in to comment.