File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -604,7 +604,7 @@ def _check_arg_refs(
604
604
type_ = inputs [field_name ].type
605
605
if not is_truthy_falsy (type_ ):
606
606
raise ValueError (
607
- f"Fields included in a 'xor' ({ field_name !r} ) must be an optional type or a"
607
+ f"Fields included in a 'xor' ({ field_name !r} ) must be an optional type or a "
608
608
f"truthy/falsy type, not type { type_ } "
609
609
)
610
610
Original file line number Diff line number Diff line change @@ -571,7 +571,7 @@ def remaining_positions(
571
571
if multiple_positions := {
572
572
k : [f"{ a .name } ({ a .position } )" for a in v ]
573
573
for k , v in positions .items ()
574
- if len (v ) > 1 and frozenset ( a .name for a in v ) not in xor
574
+ if len (v ) > 1 and not any ( x . issuperset ( a .name for a in v ) for x in xor )
575
575
}:
576
576
raise ValueError (
577
577
f"Multiple fields have the overlapping positions: { multiple_positions } "
You can’t perform that action at this time.
0 commit comments