File tree 1 file changed +1
-6
lines changed
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -722,17 +722,12 @@ def contained_in(
722
722
723
723
else :
724
724
# the elements itself do not match -> go deeper within the other connection
725
- if isinstance (resolved_other , AndConnectionRelation ):
726
- # check if the current connection fits in one of the AND relation items -> allowed too (f.e. a
727
- # smaller AND contained in a bigger AND)
728
- for cur_other_and_element in resolved_other .connections :
729
- if resolved_self .contained_in (cur_other_and_element , ignore_metadata = ignore_metadata ):
730
- return True
731
725
732
726
resolved_other_relation = resolved_other .based_on_elements \
733
727
if isinstance (resolved_other , Connection ) else resolved_other
734
728
735
729
for cur_other_based_on in resolved_other_relation .connections :
730
+ # `cur_other_based_on` can only be a Connection or an AND (resolved can not ba a inner OR)
736
731
if isinstance (cur_other_based_on , AndConnectionRelation ):
737
732
# check if the current connection fits in one of the AND relation items -> allowed too (f.e. a
738
733
# smaller AND contained in a bigger AND)
You can’t perform that action at this time.
0 commit comments