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 @@ -216,9 +216,6 @@ class BaseMessage(BaseModel):
216216 )
217217 item_hash : ItemHash = Field (description = "Hash of the content (sha256 by default)" )
218218 content : BaseContent = Field (description = "Content of the message, ready to be used" )
219- tags : Optional [List [str ]] = Field (
220- default = None , description = "Tags associated with the message"
221- )
222219
223220 forgotten_by : Optional [List [str ]]
224221
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