From db984de915944d6421e70b2064400fb3c0ec2f9c Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Wed, 26 Jun 2019 00:24:08 -0400 Subject: Removed unneeded (optional) text from docstrings --- cmd2/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmd2/utils.py') diff --git a/cmd2/utils.py b/cmd2/utils.py index 92261c62..ae3bb535 100644 --- a/cmd2/utils.py +++ b/cmd2/utils.py @@ -41,8 +41,8 @@ def style(text: Any, *, fg: str = '', bg: str = '') -> str: Applies style to text :param text: Any object compatible with str.format() - :param fg: (optional) Foreground color. Accepts color names like 'red' or 'blue' - :param bg: (optional) Background color. Accepts color names like 'red' or 'blue' + :param fg: Foreground color. Accepts color names like 'red' or 'blue' + :param bg: Background color. Accepts color names like 'red' or 'blue' """ values = [] @@ -411,7 +411,7 @@ def center_text(msg: str, *, pad: str = ' ') -> str: """Centers text horizontally for display within the current terminal, optionally padding both sides. :param msg: message to display in the center - :param pad: (optional) if provided, the first character will be used to pad both sides of the message + :param pad: if provided, the first character will be used to pad both sides of the message :return: centered message, optionally padded on both sides with pad_char """ term_width = shutil.get_terminal_size().columns -- cgit v1.2.1