We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enabling assignment reductions with a function docstring gives LatexifyNotSupportedError.
LatexifyNotSupportedError
Running
@latexify.function( reduce_assignments=True, ) def f(x): """doc string""" y = x + 1 return 2 * y f
gives LatexifyNotSupportedError: AssignmentReducer supports only Assign nodes, but got: Expr
LatexifyNotSupportedError: AssignmentReducer supports only Assign nodes, but got: Expr
$$ f(x) = 2 \mathopen{}\left( x + 1 \mathclose{}\right) $$
The text was updated successfully, but these errors were encountered:
Thanks! It looks we need a specific conditioning to ignore docstrings from this processing.
Sorry, something went wrong.
sugoi !!!
odashi
Successfully merging a pull request may close this issue.
Environment
Description
Enabling assignment reductions with a function docstring gives
LatexifyNotSupportedError
.Reproduction
Running
gives
LatexifyNotSupportedError: AssignmentReducer supports only Assign nodes, but got: Expr
Expected behavior
The text was updated successfully, but these errors were encountered: