Skip to content

Commit

Permalink
Further clarify error message
Browse files Browse the repository at this point in the history
  • Loading branch information
evhub committed Feb 3, 2024
1 parent e2fa488 commit 12b2e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coconut/compiler/templates/header.py_template
Original file line number Diff line number Diff line change
Expand Up @@ -2094,7 +2094,7 @@ def _coconut_call_or_coefficient(func, *args):
if _coconut.callable(func):
return func(*args)
if not _coconut.isinstance(func, (_coconut.int, _coconut.float, _coconut.complex)) and _coconut_get_base_module(func) not in _coconut.numpy_modules:
raise _coconut.TypeError("first argument in implicit function application and coefficient syntax must be Callable, int, float, complex, or numpy object")
raise _coconut.TypeError("first object in implicit function application and coefficient syntax must be Callable, int, float, complex, or numpy")
func = func
for x in args:
func = func * x{COMMENT.no_times_equals_to_avoid_modification}
Expand Down

0 comments on commit 12b2e73

Please sign in to comment.