def list_blocks(self):
        """Returns the AG blocks amount divided by type.

        :returns: a snap7.types.BlocksList object.
        """
        logging.debug("listing blocks")
        blocksList = BlocksList()
        result = self.library.Cli_ListBlocks(self.pointer, byref(blocksList))
        check_error(result, context="client")
        logging.debug(blocksList % "blocks: %s")
        return blocksList
dataset/ETHPy150Open gijzelaerr/python-snap7/snap7/client.py/Client.list_blocks/swapped operands of `%`