diff --git a/wev/sdk/resolution_support.py b/wev/sdk/resolution_support.py index f73afb6..a8bab3b 100644 --- a/wev/sdk/resolution_support.py +++ b/wev/sdk/resolution_support.py @@ -3,8 +3,27 @@ class ResolutionSupport: + """ + Helps plugins to resolve values. + + Arguments: + confidential_prompt: A function for requesting runtime confidential + information from the user. + + The first argument prescribes a short preamble, and + the second is the short prompt to print next to the + input cursor. + + The function returns the user-entered string. + + logger: Logger. Plugins should use this rather than + instantiate their own. + """ + def __init__( - self, logger: Logger, confidential_prompt: Callable[[str, str], str] + self, + confidential_prompt: Callable[[str, str], str], + logger: Logger, ) -> None: - self.logger = logger - self.confidential_prompt = confidential_prompt + self.logger: Logger = logger + self.confidential_prompt: Callable[[str, str], str] = confidential_prompt