]> CRI, Mines Paris - PSL - linpy.git/blobdiff - doc/reference.rst
Make LinExpr.coefficient() always return a Fraction
[linpy.git] / doc / reference.rst
index e0efddebe1144154be613ba275abf6cfe0d8b099..de5300d0a4db0f7dc88e9b6189fc9cab3b606fb2 100644 (file)
@@ -203,7 +203,7 @@ For example, if ``x`` is a :class:`Symbol`, then ``x + 1`` is an instance of :cl
     .. classmethod:: fromsympy(expr)
 
         Create a linear expression from a :mod:`sympy` expression.
     .. classmethod:: fromsympy(expr)
 
         Create a linear expression from a :mod:`sympy` expression.
-        Raise :exc:`ValueError` is the :mod:`sympy` expression is not linear.
+        Raise :exc:`TypeError` is the :mod:`sympy` expression is not linear.
 
     .. method:: tosympy()
 
 
     .. method:: tosympy()