gh-123149: Suppress verbose repr in new REPL (#123151)

This commit is contained in:
James 2024-08-19 15:04:38 -04:00 committed by GitHub
parent 48856ead6a
commit 833c58b81e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -342,10 +342,10 @@ class backspace_dedent(commands.Command):
class _ReadlineWrapper:
f_in: int = -1
f_out: int = -1
reader: ReadlineAlikeReader | None = None
reader: ReadlineAlikeReader | None = field(default=None, repr=False)
saved_history_length: int = -1
startup_hook: Callback | None = None
config: ReadlineConfig = field(default_factory=ReadlineConfig)
config: ReadlineConfig = field(default_factory=ReadlineConfig, repr=False)
def __post_init__(self) -> None:
if self.f_in == -1: