diff --git a/src/cpl/console/console.py b/src/cpl/console/console.py index b7945a92..b1536b60 100644 --- a/src/cpl/console/console.py +++ b/src/cpl/console/console.py @@ -113,7 +113,7 @@ class Console: """ @classmethod - def _output(cls, string: str, x: int = None, y: int = None, end='\n'): + def _output(cls, string: str, x: int = None, y: int = None, end: str = None): """ Prints given output with given format :param string: @@ -125,6 +125,9 @@ class Console: if cls._is_first_write: cls._is_first_write = False + if end is None: + end = '\n' + args = [] colored_args = [] if x is not None and y is not None: