File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -215,9 +215,6 @@ class BaseMessage(BaseModel):
215215 )
216216 item_hash : ItemHash = Field (description = "Hash of the content (sha256 by default)" )
217217 content : BaseContent = Field (description = "Content of the message, ready to be used" )
218- tags : Optional [List [str ]] = Field (
219- default = None , description = "Tags associated with the message"
220- )
221218
222219 forgotten_by : Optional [List [str ]]
223220
Original file line number Diff line number Diff line change 1- from pydantic import BaseModel , Extra
1+ from typing import List , Optional
2+
3+ from pydantic import BaseModel , Extra , Field
24
35
46def hashable (obj ):
@@ -23,6 +25,9 @@ class BaseContent(BaseModel):
2325
2426 address : str
2527 time : float
28+ tags : Optional [List [str ]] = Field (
29+ default = None , description = "Tags associated with the message"
30+ )
2631
2732 class Config :
2833 extra = Extra .forbid
You can’t perform that action at this time.
0 commit comments