Added generic typing to the Data class.
This doesn't make any functional difference to the code. However, if you use python intellisense that supports type hinting, this will automatically enable type hinting for all subclasses of Data, which improves the development experience immeasurably