From: Dmitry Selyutin Date: Fri, 9 Jun 2023 15:17:33 +0000 (+0300) Subject: insndb/core: introduce Path type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43a7c118eb08529b3a3251282fb0ffba46cb08ab;p=openpower-isa.git insndb/core: introduce Path type --- 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