def register(self, dtype):
if not issubclass(dtype, (PandasExtensionDtype, ExtensionDtype)):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>self.dtypes.append(dtype)<EOL>
Parameters
----------
dtype : ExtensionDtype