diff --git a/swh/model/model.py b/swh/model/model.py index fc5a21fccce4fab6127fdff88d393197505240e1..21bd45e22644d0f1337f5687343e09a274aa1c45 100644 --- a/swh/model/model.py +++ b/swh/model/model.py @@ -94,8 +94,8 @@ class TimestampWithTimezone(BaseModel): @attr.s class Origin(BaseModel): """Represents a software source: a VCS and an URL.""" - type = attr.ib(type=str) url = attr.ib(type=str) + type = attr.ib(type=Optional[str], default=None) @attr.s