Skip to content

Commit 40c749b

Browse files
committed
relaxing conjuntion badness
1 parent 86074d8 commit 40c749b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/hyperbase/parsers/badness.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ def _visit(current_edge: Hyperedge) -> None:
6666
)
6767
)
6868
else:
69-
if types != {"R"} and types != {"C"}:
69+
if len(types) > 1 and types != {"C", "R"}:
7070
current_errors.append(
7171
(
7272
"bad-junction-types",
73-
"Junction arguments should ideally be all of type 'R' "
74-
"or all of type 'C'.",
73+
"Junction arguments should ideally be all of the same "
74+
"type or a combination of 'R' and 'C' types.",
7575
3,
7676
)
7777
)

0 commit comments

Comments
 (0)