Update graph.py

This commit is contained in:
Nuno Campos
2024-06-04 08:24:03 -07:00
committed by GitHub
parent 220bdb7fc4
commit e1d98a00d0
+1 -1
View File
@@ -207,7 +207,7 @@ class Graph:
)
# coerce path_map to a dictionary
if isinstance(path_map, dict):
pass
path_map = path_map.copy()
elif isinstance(path_map, list):
path_map = {name: name for name in path_map}
elif rtn_type := get_type_hints(path).get("return"):