ims_envista.ims_variable.IMSVariable.__repr__()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
"""Data Class for IMS Variable."""
2
3
from __future__ import annotations
4
5
from dataclasses import dataclass
6
7
8
@dataclass
9
class IMSVariable:
10
    """IMS Envista Variable."""
11
12
    variable_code: str
13
    unit: str
14
    description: str
15
16
    def __repr__(self) -> str:
17
        return f"Code: {self.variable_code} - Unit: ({self.unit}) - Description: {self.description}"
18