Convert SkillFile to dictionary representation. Returns: Dictionary containing file information
(self)
| 49 | raise ValueError('File type cannot be empty') |
| 50 | |
| 51 | def to_dict(self): |
| 52 | """ |
| 53 | Convert SkillFile to dictionary representation. |
| 54 | |
| 55 | Returns: |
| 56 | Dictionary containing file information |
| 57 | """ |
| 58 | return { |
| 59 | 'name': self.name, |
| 60 | 'type': self.type, |
| 61 | 'path': str(self.path), |
| 62 | 'required': self.required |
| 63 | } |
| 64 | |
| 65 | |
| 66 | @dataclass |
no outgoing calls
no test coverage detected