From 1ff65a3eb18beb6a5c7a88e3d54c9a9018363164 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Thu, 22 Jun 2023 22:16:51 +0300 Subject: [PATCH] insndb/core: introduce section path type --- src/openpower/insndb/core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.30.2