From 710ad448fe99fa1f3e8215fb6dbb261b7b30fd32 Mon Sep 17 00:00:00 2001 From: Silen Naihin Date: Sun, 6 Aug 2023 22:43:42 +0100 Subject: [PATCH] making sure show_graph is optional --- agbenchmark/utils/dependencies/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agbenchmark/utils/dependencies/main.py b/agbenchmark/utils/dependencies/main.py index 04c5fafe..23c99159 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()