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

1"""Data class for issue representation.""" 

2 

3from dataclasses import dataclass 

4 

5from slugify import slugify 

6 

7 

8@dataclass 

9class Issue: 

10 """Simple representation of an issue from any tracker.""" 

11 

12 id: int 

13 title: str 

14 type: str 

15 

16 @property 

17 def sanitized_title(self) -> str: 

18 """Sanitized title.""" 

19 return slugify(self.title)