@@ -2663,7 +2663,7 @@ class that makes use of this mixin's functionality.
2663
2663
Collaborations:
2664
2664
What contractual agreements does this StringTransformer have with other
2665
2665
StringTransfomers? Such collaborations should be eliminated/minimized
2666
- as much as possible. Hence, this section is optional.
2666
+ as much as possible.
2667
2667
"""
2668
2668
2669
2669
# Compiling re.Pattern objects is computationally expensive, so we cache
@@ -3179,6 +3179,11 @@ class StringParensStripper(StringTransformerMixin):
3179
3179
3180
3180
Transformations:
3181
3181
The parentheses mentioned in the 'Requirements' section are stripped.
3182
+
3183
+ Collaborations:
3184
+ StringParensStripper has its own inherent usefulness, but it is also
3185
+ relied on to clean up the parentheses created by StringExprSplitter (in
3186
+ the event that they are no longer needed).
3182
3187
"""
3183
3188
3184
3189
def do_match (self , line : Line ) -> STMatchResult :
@@ -3876,6 +3881,12 @@ class StringExprSplitter(StringSplitterMixin):
3876
3881
string is not necessarily being "wrapped" by parentheses. We can,
3877
3882
however, count on the LPAR being placed directly before the chosen
3878
3883
string.
3884
+
3885
+ Collaborations:
3886
+ In the event that the string that StringExprSplitter split is changed
3887
+ such that it no longer needs to be given its own line,
3888
+ StringExprSplitter delegates the job of cleaning up the parentheses it
3889
+ created to StringParensStripper.
3879
3890
"""
3880
3891
3881
3892
def do_splitter_match (self , line : Line ) -> STMatchResult :
0 commit comments