ims_envista.ims_variable   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A IMSVariable.__repr__() 0 2 1
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