mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +00:00
[3.13] gh-131507: Clean up tests and type checking for _pyrepl
(GH-131509) (GH-131546)
(cherry picked from commit 5d8e981c84
)
This commit is contained in:
parent
0a22407a23
commit
095c1263eb
14 changed files with 234 additions and 133 deletions
|
@ -19,7 +19,7 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
import _colorize # type: ignore[import-not-found]
|
||||
import _colorize
|
||||
|
||||
from abc import ABC, abstractmethod
|
||||
import ast
|
||||
|
@ -160,7 +160,7 @@ class InteractiveColoredConsole(code.InteractiveConsole):
|
|||
*,
|
||||
local_exit: bool = False,
|
||||
) -> None:
|
||||
super().__init__(locals=locals, filename=filename, local_exit=local_exit) # type: ignore[call-arg]
|
||||
super().__init__(locals=locals, filename=filename, local_exit=local_exit)
|
||||
self.can_colorize = _colorize.can_colorize()
|
||||
|
||||
def showsyntaxerror(self, filename=None, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue