Coverage for src\gibr\issue.py: 100%
10 statements
« prev ^ index » next coverage.py v7.11.0, created at 2025-10-20 09:51 +0300
« prev ^ index » next coverage.py v7.11.0, created at 2025-10-20 09:51 +0300
1"""Data class for issue representation."""
3from dataclasses import dataclass
5from slugify import slugify
8@dataclass
9class Issue:
10 """Simple representation of an issue from any tracker."""
12 id: int
13 title: str
14 type: str
16 @property
17 def sanitized_title(self) -> str:
18 """Sanitized title."""
19 return slugify(self.title)