@@ -280,11 +280,11 @@ def __or__(self, other: Pattern) -> AnyOf:
280
280
New pattern that matches if either of the patterns match.
281
281
"""
282
282
if isinstance (self , AnyOf ) and isinstance (other , AnyOf ):
283
- return AnyOf (* self .patterns , * other .patterns )
283
+ return AnyOf (* self .inners , * other .inners )
284
284
elif isinstance (self , AnyOf ):
285
- return AnyOf (* self .patterns , other )
285
+ return AnyOf (* self .inners , other )
286
286
elif isinstance (other , AnyOf ):
287
- return AnyOf (self , * other .patterns )
287
+ return AnyOf (self , * other .inners )
288
288
else :
289
289
return AnyOf (self , other )
290
290
@@ -301,11 +301,11 @@ def __and__(self, other: Pattern) -> AllOf:
301
301
New pattern that matches if both of the patterns match.
302
302
"""
303
303
if isinstance (self , AllOf ) and isinstance (other , AllOf ):
304
- return AllOf (* self .patterns , * other .patterns )
304
+ return AllOf (* self .inners , * other .inners )
305
305
elif isinstance (self , AllOf ):
306
- return AllOf (* self .patterns , other )
306
+ return AllOf (* self .inners , other )
307
307
elif isinstance (other , AllOf ):
308
- return AllOf (self , * other .patterns )
308
+ return AllOf (self , * other .inners )
309
309
else :
310
310
return AllOf (self , other )
311
311
0 commit comments