insndb/core: introduce Path type
[openpower-isa.git] / src / openpower / insndb / core.py
index 7c3c0399c0322408707ce0a4c055dfbfe5ffe493..c957eb3651ae0452048eb64701359be4ff04780f 100644 (file)
@@ -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