From 7a45899fc4369e2efacb898382a751be4674c832 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Fri, 9 Jun 2023 18:17:33 +0300 Subject: [PATCH] insndb/core: introduce Path type --- src/openpower/insndb/core.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/openpower/insndb/core.py b/src/openpower/insndb/core.py index 7c3c0399..c957eb36 100644 --- a/src/openpower/insndb/core.py +++ b/src/openpower/insndb/core.py @@ -65,6 +65,10 @@ class String(Node, str): pass +class Path(Node, type(_pathlib.Path())): + pass + + @_dataclasses.dataclass(eq=True, frozen=True) class Dataclass: def subnodes(self, match=None): @@ -609,7 +613,7 @@ class Section: def __repr__(self): return (bin(self) if self else "None") - path: _pathlib.Path + path: Path bitsel: BitSel suffix: Suffix mode: Mode -- 2.30.2