From bde898e46e34cdfba39cecb75586fa3f4d816520 Mon Sep 17 00:00:00 2001 From: Lovis Date: Wed, 28 Oct 2020 10:49:48 +0100 Subject: [PATCH] fix: changed fallback type if no bounds are specified in lp_file to dict --- flipy/lp_reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flipy/lp_reader.py b/flipy/lp_reader.py index 38f5569..f29cc1d 100644 --- a/flipy/lp_reader.py +++ b/flipy/lp_reader.py @@ -334,7 +334,7 @@ def read(cls, obj: Union[str, IO, TextIO, io.StringIO]) -> LpProblem: obj_name, obj_expr, obj_coeff = cls._parse_named_expression(sections['objective']) constraints = cls._parse_constraints(sections['constraints']) if 'constraints' in sections else [] - bounds = cls._parse_bounds(sections['bounds']) if 'bounds' in sections else [] + bounds = cls._parse_bounds(sections['bounds']) if 'bounds' in sections else {} generals = cls._parse_generals(sections['generals']) if 'generals' in sections else [] binaries = cls._parse_binaries(sections['binaries']) if 'binaries' in sections else []