File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,10 @@ def __add__(self, other: str) -> str:
57
57
warnings .warn (_MSG , RemovedInSphinx90Warning , stacklevel = 2 )
58
58
return self .__str__ () + other
59
59
60
+ def __radd__ (self , other : str ) -> str :
61
+ warnings .warn (_MSG , RemovedInSphinx90Warning , stacklevel = 2 )
62
+ return other + self .__str__ ()
63
+
60
64
def __bool__ (self ) -> bool :
61
65
if not self .__str__ ():
62
66
warnings .warn (_MSG , RemovedInSphinx90Warning , stacklevel = 2 )
@@ -108,6 +112,10 @@ def __add__(self, other: str) -> str:
108
112
warnings .warn (_MSG , RemovedInSphinx90Warning , stacklevel = 2 )
109
113
return self .__str__ () + other
110
114
115
+ def __radd__ (self , other : str ) -> str :
116
+ warnings .warn (_MSG , RemovedInSphinx90Warning , stacklevel = 2 )
117
+ return other + self .__str__ ()
118
+
111
119
def __bool__ (self ) -> bool :
112
120
if not self .__str__ ():
113
121
warnings .warn (_MSG , RemovedInSphinx90Warning , stacklevel = 2 )
You can’t perform that action at this time.
0 commit comments