The assumption in FunctionClass
breaks subclassing UndefinedFunction
with 3 args since SymPy 1.11
#26431
Labels
FunctionClass
breaks subclassing UndefinedFunction
with 3 args since SymPy 1.11
#26431
In https://github.com/sympy/sympy/blob/master/sympy/core/function.py, the following lines in
class FunctionClass
introduced by #23526 breaks the following minimal working example of subclassing
UndefinedFunction
with 3 args since SymPy 1.11:The error is:
which will not error if one changes the args from
name, m, n
to e.g.name, shape
, and is the indication the assumption is not robust for all cases.See pygae/galgebra#495 for the original issue.
I wonder if a better way to trigger the validation can be found, or any more idiomatic suggestions for the use case are welcome.
The text was updated successfully, but these errors were encountered: