Skip to content
Snippets Groups Projects
Commit f7f18a3f authored by vlorentz's avatar vlorentz
Browse files

Make attributes name and email of Person optional.

Required by loaders, when they can't parse the fullname.
parent 750d1471
No related branches found
Tags v0.0.57
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment