mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +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
|
@ -456,7 +456,7 @@ class invalid_command(Command):
|
|||
class show_history(Command):
|
||||
def do(self) -> None:
|
||||
from .pager import get_pager
|
||||
from site import gethistoryfile # type: ignore[attr-defined]
|
||||
from site import gethistoryfile
|
||||
|
||||
history = os.linesep.join(self.reader.history[:])
|
||||
self.reader.console.restore()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue