File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,10 @@ class ModelItemIO(BaseModel, ABC):
4141
4242 """
4343
44- id : str = Field ("" )
45- tags : List [str ] = Field ([])
46- properties : Dict [str , str ] = Field ({})
47- perspectives : List [PerspectiveIO ] = Field ([])
44+ id : str = Field (default = "" )
45+ tags : List [str ] = Field (default = [])
46+ properties : Dict [str , str ] = Field (default = {})
47+ perspectives : List [PerspectiveIO ] = Field (default = [])
4848
4949 @validator ("tags" , pre = True )
5050 def split_tags (cls , tags : Union [str , List [str ]]) -> List [str ]:
@@ -79,7 +79,7 @@ def __init__(
7979 id : str = "" ,
8080 origin_id : str = "" ,
8181 tags : Iterable [str ] = (),
82- properties : [ Dict [str , str ] ] = (),
82+ properties : Dict [str , str ] = (),
8383 perspectives : Iterable [Perspective ] = (),
8484 ** kwargs
8585 ):
You can’t perform that action at this time.
0 commit comments