Skip to content

Commit b660d80

Browse files
martinruefenachtMartin Ruefenacht
andauthored
Fixed LIS kind property not using express (#12)
* Fixed bug reported by Victor * Bundled apis.json and allow for override (#10) Co-authored-by: Martin Ruefenacht <martin.ruefenacht@lrz.de> * Upgraded to 3.9 --------- Co-authored-by: Martin Ruefenacht <martin.ruefenacht@lrz.de>
1 parent 01203c7 commit b660d80

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11

22
[tool.poetry]
33
name = "pympistandard"
4-
version = "0.1.0"
4+
version = "0.1.1"
55
description = "Python API to the MPI Standard"
66
authors = ["Martin Ruefenacht <martin.ruefenacht@lrz.de>"]
77

88
[tool.poetry.dependencies]
9-
python = "^3.7"
9+
python = "^3.9"
1010

1111
[tool.poetry.dev-dependencies]
1212
pytest = "^7.0.1"

src/pympistandard/lis.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def kind(self) -> Optional["Kind"]:
7979

8080
kind = KINDS[self._parseset["kind"]]
8181

82-
return None if kind.lis is None else kind
82+
return None if kind.express.lis is None else kind
8383

8484
@property
8585
def type(self) -> str:
@@ -88,7 +88,10 @@ def type(self) -> str:
8888
if self.kind is None or self.kind.express.lis is None:
8989
return ""
9090

91-
if "lis_paren" in self._parseset["suppress"] or "lis_kind" in self._parseset["suppress"]:
91+
if (
92+
"lis_paren" in self._parseset["suppress"]
93+
or "lis_kind" in self._parseset["suppress"]
94+
):
9295
return ""
9396

9497
if self.kind in (KINDS.STRING, KINDS.STRING_2DARRAY):

0 commit comments

Comments
 (0)