| Conditions | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | from coala_decorators.decorators import generate_repr |
||
| 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 | |||
| 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