Open slavikovbasa opened 11 months ago
Implement and process class-based graph components. Old and new apis have to coexist to enable gradual migration.
field
field_link
Node
link[Node]
Interface
Union
typing.Annotated[Node1 | Node2 | Node3, hiku.union('UnionName')]
Directive
Option
Enum
typing.Annotated['Node1', hiku.lazy('.some_node')]
Implement and process class-based graph components. Old and new apis have to coexist to enable gradual migration.
field
as a function returning field context.field_link
as a function returning link context.Node
through either a base class or a class decorator.field
andfield_link
.Node
types. Maybe addlink[Node]
for a future.Node
to a regular one at graph initialization.Interface
through either a base class or a class decorator.Interface
to a regular one at graph initialization.Union
astyping.Annotated[Node1 | Node2 | Node3, hiku.union('UnionName')]
.Union
to a regular one at graph initialization.Directive
unchanged.Option
unchanged.Enum
unchanged.typing.Annotated['Node1', hiku.lazy('.some_node')]
.