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=3ed13d5d2942ee03e18a6dfc0157357b3e37e5a9;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