diff --git a/aleph_message/models/__init__.py b/aleph_message/models/__init__.py index c763907..6130800 100644 --- a/aleph_message/models/__init__.py +++ b/aleph_message/models/__init__.py @@ -298,7 +298,7 @@ class ProgramMessage(BaseMessage): content: ProgramContent @classmethod - def parse_obj(cls, obj: Dict) -> "AlephContentType": + def parse_obj(cls, obj: Dict) -> "ProgramMessage": obj = add_item_content_and_hash(obj, factory=ProgramContent) return super().parse_obj(obj)