ims_envista.version   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A Version.__init__() 0 2 1
A Version.__setattr__() 0 3 1
1
"""Version."""
2
class Version:
3
    """Version of the package."""
4
5
    def __setattr__(self, *args: dict) -> None:
6
        msg = "can't modify immutable instance"
7
        raise TypeError(msg)
8
9
    __delattr__ = __setattr__
10
11
    def __init__(self, num: str) -> None:
12
        super().__setattr__("number", num)
13