Total Complexity | 1 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Coverage | 85.71% |
Changes | 0 |
1 | # Copyright 2022, Red Hat, Inc. |
||
2 | # SPDX-License-Identifier: LGPL-2.1-or-later |
||
3 | |||
4 | 1 | from dataclasses import asdict, dataclass |
|
5 | |||
6 | |||
7 | 1 | @dataclass |
|
8 | 1 | class Identifier: |
|
9 | 1 | system: str |
|
10 | 1 | text: str |
|
11 | |||
12 | 1 | def as_dict(self): |
|
13 | return asdict(self) |
||
14 |