Skip to content

Commit 8829514

Browse files
authored
Adjust for type mismatch... (#1374)
Correct for mismatch between ListExpression and tuple
1 parent ec5dd08 commit 8829514

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mathics/builtin/patterns/rules.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class DispatchAtom(AtomBuiltin):
9999
"""
100100
<url>
101101
:WMA link:
102-
https://reference.wolfram.com/language/ref/DispatchAtom.html</url>
102+
https://reference.wolfram.com/language/ref/Dispatch.html</url>
103103
104104
<dl>
105105
<dt>'Dispatch'[$rulelist$]
@@ -135,7 +135,7 @@ def eval_list(
135135
self, rules: ListExpression, evaluation: Evaluation
136136
) -> OptionalType[BaseElement]:
137137
"""Dispatch[rules_List]"""
138-
result = eval_dispatch_atom(rules, evaluation)
138+
result = eval_dispatch_atom(rules.elements, evaluation)
139139
return result
140140

141141
def eval(

0 commit comments

Comments
 (0)