«
class documentation

class FakeUI(ConsoleUI):

Constructor: FakeUI()

View In Hierarchy

A fake UI object, adhering to the interface expected by KnownHostsFile.verifyHostKey

Method __init__ No summary
Method prompt Issue the user an interactive prompt, which they can accept or deny.
Method warn Issue a non-interactive warning to the user.
Instance Variable promptDeferred last result returned from 'prompt'.
Instance Variable promptText the last input provided to 'prompt'.
Instance Variable userWarnings inputs provided to 'warn'.

Inherited from ConsoleUI:

Instance Variable opener Undocumented
def __init__(self):
Parameters
opener:callable taking no arguments and returning a read/write file-like objectA no-argument callable which should open a console binary-mode file-like object to be used for reading and writing. This initializes the opener attribute.
def prompt(self, text: bytes) -> Deferred[bool]:

Issue the user an interactive prompt, which they can accept or deny.

def warn(self, text: bytes):

Issue a non-interactive warning to the user.

promptDeferred: Deferred[bool] | None =

last result returned from 'prompt'.

promptText: bytes | None =

the last input provided to 'prompt'.

userWarnings: list[bytes] =

inputs provided to 'warn'.