| Total Complexity | 2 | 
| Total Lines | 18 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | from coala_decorators.decorators import generate_repr  | 
            ||
| 4 | @generate_repr()  | 
            ||
| 5 | class PackageRequirement:  | 
            ||
| 6 | |||
| 7 | def __init__(self, manager: str, package: str, version: str):  | 
            ||
| 8 | """  | 
            ||
| 9 | :param manager: A string with the name of the manager (pip, npm, etc).  | 
            ||
| 10 | :param package: A string with the name of the package to be installed.  | 
            ||
| 11 | :param version: A number that contains the version.  | 
            ||
| 12 | """  | 
            ||
| 13 | self.manager = manager  | 
            ||
| 14 | self.package = package  | 
            ||
| 15 | self.version = version  | 
            ||
| 16 | |||
| 17 | def check(self):  | 
            ||
| 18 | """  | 
            ||
| 19 | Check if the requirement is satisfied.  | 
            ||
| 20 | """  | 
            ||
| 21 | raise NotImplementedError  | 
            ||
| 22 | |||
| 31 | 
If a method does not access any attributes of the class, it could also be implemented as a function or static method. This can help improve readability. For example
could be written as