Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion cirq-google/cirq_google/serialization/arg_func_langs.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,11 @@ def check_support(func_type: str) -> str:
for arg in value.args:
arg_to_proto(arg, arg_function_language=arg_function_language, out=msg.func.args.add())
else:
raise ValueError(f'Unrecognized arg type: {type(value)}')
raise ValueError(
f"Unrecognized Sympy expression type: {type(value)}."
" Only the following types are recognized: 'sympy.Symbol', 'sympy.Add', 'sympy.Mul',"
" 'sympy.Pow'."
)


def float_arg_from_proto(
Expand Down