@@ -86,7 +86,7 @@ def __repr__(self) -> str:
86
86
if self ._attributes is None :
87
87
return f"<IsA { self ._match_type .__name__ } >"
88
88
else :
89
- return f"<IsA { self ._match_type .__name__ } { repr ( self ._attributes ) } >"
89
+ return f"<IsA { self ._match_type .__name__ } { self ._attributes !r } >"
90
90
91
91
92
92
def IsA (match_type : type , attributes : Optional [Mapping [str , Any ]] = None ) -> Any :
@@ -126,7 +126,7 @@ def __eq__(self, target: object) -> bool:
126
126
127
127
def __repr__ (self ) -> str :
128
128
"""Return a string representation of the matcher."""
129
- return f"<IsNot { repr ( self ._reject_value ) } >"
129
+ return f"<IsNot { self ._reject_value !r } >"
130
130
131
131
132
132
def IsNot (value : object ) -> Any :
@@ -164,7 +164,7 @@ def __eq__(self, target: object) -> bool:
164
164
165
165
def __repr__ (self ) -> str :
166
166
"""Return a string representation of the matcher."""
167
- return f"<HasAttributes { repr ( self ._attributes ) } >"
167
+ return f"<HasAttributes { self ._attributes !r } >"
168
168
169
169
170
170
def HasAttributes (attributes : Mapping [str , Any ]) -> Any :
@@ -207,7 +207,7 @@ def __eq__(self, target: object) -> bool:
207
207
208
208
def __repr__ (self ) -> str :
209
209
"""Return a string representation of the matcher."""
210
- return f"<DictMatching { repr ( self ._values ) } >"
210
+ return f"<DictMatching { self ._values !r } >"
211
211
212
212
213
213
def DictMatching (values : Mapping [str , Any ]) -> Any :
@@ -238,7 +238,7 @@ def __eq__(self, target: object) -> bool:
238
238
239
239
def __repr__ (self ) -> str :
240
240
"""Return a string representation of the matcher."""
241
- return f"<StringMatching { repr ( self ._pattern .pattern ) } >"
241
+ return f"<StringMatching { self ._pattern .pattern !r } >"
242
242
243
243
244
244
def StringMatching (match : str ) -> str :
0 commit comments