From f12212ecf1bd9a9300180373bf807a59a45b2762 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 15 Aug 2023 12:30:57 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- linear_programming/simplex.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/linear_programming/simplex.py b/linear_programming/simplex.py index c25feb77f..bbc97d8e2 100644 --- a/linear_programming/simplex.py +++ b/linear_programming/simplex.py @@ -38,11 +38,12 @@ class Tableau: # Max iteration number to prevent cycling maxiter = 100 + def __init__( self, tableau: np.ndarray, n_vars: int, n_artificial_vars: int - ) -> None: - if tableau.dtype != 'float64': - raise TypeError('Tableau must have type float64') + ) -> None: + if tableau.dtype != "float64": + raise TypeError("Tableau must have type float64") # Check if RHS is negative if not (tableau[:, -1] >= 0).all():