File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 3
3
These are used for things like setting the window title and asynchronous alerts.
4
4
"""
5
5
6
- from typing import Any
7
-
8
6
from .string_utils import str_width
9
7
10
8
#######################################################
@@ -61,27 +59,6 @@ def clear_line_str(clear_type: int = 2) -> str:
61
59
raise ValueError ("clear_type must in an integer from 0 to 2" )
62
60
63
61
64
- ####################################################################################
65
- # Base classes which are not intended to be used directly
66
- ####################################################################################
67
- class AnsiSequence :
68
- """Base class to create ANSI sequence strings."""
69
-
70
- def __add__ (self , other : Any ) -> str :
71
- """Support building an ANSI sequence string when self is the left operand.
72
-
73
- e.g. Fg.LIGHT_MAGENTA + "hello"
74
- """
75
- return str (self ) + str (other )
76
-
77
- def __radd__ (self , other : Any ) -> str :
78
- """Support building an ANSI sequence string when self is the right operand.
79
-
80
- e.g. "hello" + Fg.RESET
81
- """
82
- return str (other ) + str (self )
83
-
84
-
85
62
####################################################################################
86
63
# Implementations intended for direct use (do NOT use outside of cmd2)
87
64
####################################################################################
You can’t perform that action at this time.
0 commit comments