diff --git a/src/AuDaGe/formats/controlexpert/xsy.py b/src/AuDaGe/formats/controlexpert/xsy.py index f5c8d94..747e97b 100644 --- a/src/AuDaGe/formats/controlexpert/xsy.py +++ b/src/AuDaGe/formats/controlexpert/xsy.py @@ -573,7 +573,7 @@ class XSYReader: self.definitions_ss_path = definitions_ss_path self.even_addresses = even_addresses - def read(self, path: Traversable, expand: bool = True) -> XSY: + def read(self, path: Traversable, expand: bool = True) -> XSYBlock: """Read the dataBlock and definitions of an XSY file into an XSY object. """ @@ -591,7 +591,7 @@ class XSYReader: ) if expand: xsy.datablock = xsy.expand_datablock() - return xsy + return xsy.datablock def write(self): """Write XSY object to file."""