| Conditions | 3 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """Base optimizer.""" |
||
| 13 | 1 | def set_custom_optimizing_order(self, ordered_stages): |
|
| 14 | """Set custom order. |
||
| 15 | |||
| 16 | Raises: |
||
| 17 | ValueError: When order doesn't contain all stages. |
||
| 18 | """ |
||
| 19 | 1 | if set(self.ordered_stages) == set(ordered_stages) and len( |
|
| 20 | self.ordered_stages) == len(ordered_stages): |
||
| 21 | 1 | self.ordered_stages = ordered_stages |
|
| 22 | else: |
||
| 23 | 1 | raise ValueError("List of stages must contain all stages.") |
|
| 24 | |||
| 32 |
This can be caused by one of the following:
1. Missing Dependencies
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
2. Missing __init__.py files
This error could also result from missing
__init__.pyfiles in your module folders. Make sure that you place one file in each sub-folder.