Conditions | 2 |
Total Lines | 12 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 1 |
CRAP Score | 4.048 |
Changes | 0 |
1 | #!/usr/bin/python |
||
13 | 1 | def __init__(self, success: bool, sold_items: List[SoldItem] = None) -> None: |
|
14 | """Initializing function |
||
15 | |||
16 | :type success: bool |
||
17 | :type sold_items: List[SoldItem] |
||
18 | """ |
||
19 | self._success = success |
||
20 | |||
21 | if sold_items: |
||
22 | self._sold_items = sold_items |
||
23 | else: |
||
24 | self._sold_items = [] |
||
25 | |||
65 |