Conditions | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | class CircularDependencyError(Exception): |
||
37 | @classmethod |
||
38 | def check_circular_dependency(cls, bears): |
||
39 | """ |
||
40 | Collects all dependencies of the given bears. This will also remove |
||
41 | duplicates. |
||
42 | |||
43 | :param bears: The given bears. Will not be modified. |
||
44 | :return: The new list of bears, sorted so that it can be executed |
||
45 | sequentially without dependency issues. |
||
46 | """ |
||
47 | return cls._resolve(bears, [], []) |
||
48 |