| Conditions | 1 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 1 |
| CRAP Score | 1.4218 |
| Changes | 0 | ||
| 1 | #!/usr/bin/python |
||
| 10 | 1 | def __init__(self, price: int, wear_value: float, sold_at: [float, int] = time()) -> None: |
|
| 11 | """Initializing function |
||
| 12 | |||
| 13 | :type price: |
||
| 14 | :type wear_value: |
||
| 15 | :type sold_at: |
||
| 16 | """ |
||
| 17 | self._price = price |
||
| 18 | self._wear_value = wear_value |
||
| 19 | self._sold_at = int(sold_at) |
||
| 20 | |||
| 32 |