Skip to content

Commit b392036

Browse files
committed
quit trying to fix this inconsistencies by now...
1 parent 343c670 commit b392036

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

mathics/core/pattern.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -928,12 +928,15 @@ def expression_pattern_match_element_orderless(
928928
less_first=less_first,
929929
*set_lengths,
930930
)
931-
return tuple(((tuple(q) for q in s) for s in sets))
931+
return sets
932932

933933

934+
# TODO: adding the annotations for items
935+
# and items_rest as ``tuples`` produce failures in cython.
936+
# We should investigate what is the right type to pass here.
934937
def expression_pattern_match_element_process_items(
935-
items: tuple,
936-
items_rest: tuple,
938+
items: Union[tuple, list],
939+
items_rest: Union[tuple, list],
937940
parms: dict,
938941
):
939942
# Include wrappings like Plus[a, b] only if not all items taken

0 commit comments

Comments
 (0)