From: Dmitry Selyutin Date: Thu, 22 Jun 2023 19:16:51 +0000 (+0300) Subject: insndb/core: introduce section path type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1ff65a3eb18beb6a5c7a88e3d54c9a9018363164;p=openpower-isa.git insndb/core: introduce section path type --- diff --git a/src/openpower/insndb/core.py b/src/openpower/insndb/core.py index e5b1b12e..7490cf67 100644 --- a/src/openpower/insndb/core.py +++ b/src/openpower/insndb/core.py @@ -548,6 +548,9 @@ class BitSel: class Section(Dataclass): + class Path(type(_pathlib.Path("."))): + pass + class Mode(_enum.Enum): INTEGER = _enum.auto() PATTERN = _enum.auto() @@ -576,7 +579,7 @@ class Section(Dataclass): def __repr__(self): return (bin(self) if self else "None") - csv: _pathlib.Path + csv: Path bitsel: BitSel suffix: Suffix mode: Mode