We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 343c670 commit b392036Copy full SHA for b392036
mathics/core/pattern.py
@@ -928,12 +928,15 @@ def expression_pattern_match_element_orderless(
928
less_first=less_first,
929
*set_lengths,
930
)
931
- return tuple(((tuple(q) for q in s) for s in sets))
+ return sets
932
933
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.
937
def expression_pattern_match_element_process_items(
- items: tuple,
- items_rest: tuple,
938
+ items: Union[tuple, list],
939
+ items_rest: Union[tuple, list],
940
parms: dict,
941
):
942
# Include wrappings like Plus[a, b] only if not all items taken
0 commit comments