use new input/output field
This commit is contained in:
@@ -22,9 +22,9 @@ def normalize_path(path: PathArg) -> str:
|
||||
|
||||
def bind_fields(**mapping: PathArg) -> dict[str, str]:
|
||||
return {
|
||||
str(coerce_graph_path(source.path if isinstance(source, GraphPath) else source)): (
|
||||
destination
|
||||
)
|
||||
str(
|
||||
coerce_graph_path(source.path if isinstance(source, GraphPath) else source)
|
||||
): (destination)
|
||||
for destination, source in mapping.items()
|
||||
}
|
||||
|
||||
|
||||
@@ -7,12 +7,7 @@ from typing import TypeAlias, cast
|
||||
from wf_core.paths import GraphRoot, GraphSourcePath, LocalPath, StatePath
|
||||
|
||||
PathInput: TypeAlias = (
|
||||
str
|
||||
| Iterable[str]
|
||||
| Mapping[str, object]
|
||||
| GraphSourcePath
|
||||
| StatePath
|
||||
| LocalPath
|
||||
str | Iterable[str] | Mapping[str, object] | GraphSourcePath | StatePath | LocalPath
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user