Skip to content

Commit

Permalink
Enforce str return type
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Dec 31, 2023
1 parent 53c1e4c commit 50032d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysr/export_latex.py
Expand Up @@ -23,7 +23,7 @@ def sympy2latex(expr, prec=3, full_prec=True, **settings) -> str:
"""Convert sympy expression to LaTeX with custom precision."""
settings["full_prec"] = full_prec
printer = PreciseLatexPrinter(settings=settings, prec=prec)
return printer.doprint(expr)
return str(printer.doprint(expr))


def generate_table_environment(
Expand Down

0 comments on commit 50032d1

Please sign in to comment.