Skip to content

bug: process.export broken #225

@toby-coleman

Description

@toby-coleman

Summary

Consider this model:

from plugboard.component import Component, IOController as IO
from plugboard.process import LocalProcess
from plugboard.connector import AsyncioConnector
from plugboard.schemas import ConnectorSpec

class A(Component):
    io = IO(outputs=["out_1"])

    async def step(self) -> None:
        pass

class B(Component):
    io = IO(inputs=["in_1"])

    async def step(self) -> None:
        pass

process.dump("test-export.yaml")

Fails with:

  Input should be a valid dictionary [type=dict_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.12/v/dict_type
plugboard.process.args.state
  Input should be a valid dictionary or instance of StateBackendSpec [type=model_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.12/v/model_type

Version Information

Plugboard version: 0.6.0
Platform: Linux-6.6.84.1-microsoft-standard-WSL2-x86_64-with-glibc2.39
Python version: 3.12.11

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions