:rtype: bool
return issubclass(type_, Serializable) or (inspect.isclass(type_) and hasattr(type_, "_asdict"))
@abstractmethod
def _asdict(self):
After Change
:rtype: bool
if not inspect.isclass(type_):
return Serializable.is_serializable(type_)
return issubclass(type_, Serializable) or hasattr(type_, "_asdict")