Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

making sure show_graph is optional

Silen Naihin710ad448fe99
diff --git a/agbenchmark/utils/dependencies/main.py b/agbenchmark/utils/dependencies/main.py
index 04c5fafe62..23c9915980 100644
--- a/agbenchmark/utils/dependencies/main.py
+++ b/agbenchmark/utils/dependencies/main.py
@@ -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()