Total Complexity | 2 |
Total Lines | 13 |
Duplicated Lines | 0 % |
Changes | 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 |