use new input/output field

This commit is contained in:
lda
2026-05-21 03:09:26 +07:00 Verified
parent c37be4f13c
commit 6e768435d8
8 changed files with 400 additions and 82 deletions
+3 -3
View File
@@ -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()
}
+1 -6
View File
@@ -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
)