mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-25 09:54:23 +01:00
making sure show_graph is optional
This commit is contained in:
@@ -6,7 +6,7 @@ __init__.py.
|
||||
"""
|
||||
|
||||
import collections
|
||||
from typing import Any, Generator
|
||||
from typing import Any, Generator, Optional
|
||||
|
||||
import colorama
|
||||
import networkx
|
||||
@@ -191,7 +191,7 @@ class DependencyManager(object):
|
||||
colorama.deinit()
|
||||
|
||||
@property
|
||||
def sorted_items(self, show_graph: bool = False) -> Generator:
|
||||
def sorted_items(self, show_graph: Optional[bool] = False) -> Generator:
|
||||
"""Get a sorted list of tests where all tests are sorted after their dependencies."""
|
||||
# Build a directed graph for sorting
|
||||
dag = networkx.DiGraph()
|
||||
|
||||
Reference in New Issue
Block a user