15 lines
263 B
Python
15 lines
263 B
Python
|
from dataclasses import dataclass
|
||
|
from typing import List
|
||
|
|
||
|
|
||
|
@dataclass
|
||
|
class Package:
|
||
|
"""
|
||
|
Package represents RPM package exstracted from RHEL OVAL
|
||
|
"""
|
||
|
name: str
|
||
|
version: str
|
||
|
|
||
|
def __str__(self):
|
||
|
return f"{self.name}-{self.version}"
|