ims_envista.version.Version.__setattr__()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nop 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
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