Represents a single changelog entry.
| 157 | |
| 158 | @dataclass |
| 159 | class ChangeEntry: |
| 160 | """Represents a single changelog entry.""" |
| 161 | title: str |
| 162 | change_type: str |
| 163 | authors: List[Author] = field(default_factory=list) |
| 164 | links: List[Link] = field(default_factory=list) |
| 165 | |
| 166 | def to_dict(self): |
| 167 | """Convert to dictionary for YAML serialization.""" |
| 168 | return { |
| 169 | "title": self.title, |
| 170 | "type": self.change_type, |
| 171 | "authors": [author.to_dict() for author in self.authors], |
| 172 | "links": [link.to_dict() for link in self.links], |
| 173 | } |
| 174 | |
| 175 | |
| 176 | class AuthorParser: |
no outgoing calls
no test coverage detected
searching dependent graphs…