1- from typing import List , Optional , Any , Dict , Union
1+ from typing import Any , Dict , List , Optional , Union
22
3- from aleph_message .models import AlephMessage , BaseMessage , ItemHash , ChainRef
3+ from aleph_message .models import AlephMessage , BaseMessage , ChainRef , ItemHash
44from pydantic import BaseModel , Field
55
66
@@ -23,16 +23,25 @@ class Post(BaseMessage):
2323 A post is a type of message that can be updated. Over the get_posts API
2424 we get the latest version of a post.
2525 """
26+
2627 hash : ItemHash = Field (description = "Hash of the content (sha256 by default)" )
27- original_item_hash : ItemHash = Field (description = "Hash of the original content (sha256 by default)" )
28+ original_item_hash : ItemHash = Field (
29+ description = "Hash of the original content (sha256 by default)"
30+ )
2831 original_signature : Optional [str ] = Field (
2932 description = "Cryptographic signature of the original message by the sender"
3033 )
31- original_type : str = Field (description = "The original, user-generated 'content-type' of the POST message" )
32- content : Dict [str , Any ] = Field (description = "The content.content of the POST message" )
34+ original_type : str = Field (
35+ description = "The original, user-generated 'content-type' of the POST message"
36+ )
37+ content : Dict [str , Any ] = Field (
38+ description = "The content.content of the POST message"
39+ )
3340 type : str = Field (description = "The content.type of the POST message" )
3441 address : str = Field (description = "The address of the sender of the POST message" )
35- ref : Optional [Union [str , ChainRef ]] = Field (description = "Other message referenced by this one" )
42+ ref : Optional [Union [str , ChainRef ]] = Field (
43+ description = "Other message referenced by this one"
44+ )
3645
3746
3847class PostsResponse (PaginationResponse ):
0 commit comments