diff --git a/swh/model/model.py b/swh/model/model.py index 7554441025136437540b4e136f407a7b79605796..aff5a7d64a4d840710e66b0fe323395fab0b5c8d 100644 --- a/swh/model/model.py +++ b/swh/model/model.py @@ -84,9 +84,9 @@ class HashableObject(metaclass=ABCMeta): @attr.s(frozen=True) class Person(BaseModel): """Represents the author/committer of a revision or release.""" - name = attr.ib(type=bytes) - email = attr.ib(type=bytes) fullname = attr.ib(type=bytes) + name = attr.ib(type=Optional[bytes]) + email = attr.ib(type=Optional[bytes]) @attr.s(frozen=True)