@@ -1062,7 +1062,7 @@ def poutput(self, msg: Any = '', *, end: str = '\n') -> None:
10621062 been piped to another process and that process terminates before the
10631063 cmd2 command is finished executing.
10641064
1065- :param msg: message to print (anything convertible to a str)
1065+ :param msg: object to print
10661066 :param end: string appended after the end of the message, default a newline
10671067 """
10681068 try :
@@ -1080,7 +1080,7 @@ def poutput(self, msg: Any = '', *, end: str = '\n') -> None:
10801080 def perror (self , msg : Any = '' , * , end : str = '\n ' , apply_style : bool = True ) -> None :
10811081 """Print message to sys.stderr
10821082
1083- :param msg: message to print (anything convertible to a str)
1083+ :param msg: object to print
10841084 :param end: string appended after the end of the message, default a newline
10851085 :param apply_style: If True, then ansi.style_error will be applied to the message text. Set to False in cases
10861086 where the message text already has the desired style. Defaults to True.
@@ -1094,7 +1094,7 @@ def perror(self, msg: Any = '', *, end: str = '\n', apply_style: bool = True) ->
10941094 def pwarning (self , msg : Any = '' , * , end : str = '\n ' , apply_style : bool = True ) -> None :
10951095 """Wraps perror, but applies ansi.style_warning by default
10961096
1097- :param msg: message to print (anything convertible to a str)
1097+ :param msg: object to print
10981098 :param end: string appended after the end of the message, default a newline
10991099 :param apply_style: If True, then ansi.style_warning will be applied to the message text. Set to False in cases
11001100 where the message text already has the desired style. Defaults to True.
@@ -1134,7 +1134,7 @@ def pfeedback(self, msg: Any, *, end: str = '\n') -> None:
11341134 """For printing nonessential feedback. Can be silenced with `quiet`.
11351135 Inclusion in redirected output is controlled by `feedback_to_output`.
11361136
1137- :param msg: message to print (anything convertible to a str)
1137+ :param msg: object to print
11381138 :param end: string appended after the end of the message, default a newline
11391139 """
11401140 if not self .quiet :
@@ -1149,7 +1149,7 @@ def ppaged(self, msg: Any, *, end: str = '\n', chop: bool = False) -> None:
11491149 Never uses a pager inside of a script (Python or text) or when output is being redirected or piped or when
11501150 stdout or stdin are not a fully functional terminal.
11511151
1152- :param msg: message to print to current stdout (anything convertible to a str)
1152+ :param msg: object to print
11531153 :param end: string appended after the end of the message, default a newline
11541154 :param chop: True -> causes lines longer than the screen width to be chopped (truncated) rather than wrapped
11551155 - truncated text is still accessible by scrolling with the right & left arrow keys
0 commit comments