Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not attempt to represent models due to non-serializable errors (#438)
### What kind of change does this PR introduce? * Removes the `pydantic`-defined models from the public API of `emulators`. ### Does this PR introduce a breaking change? No. Usage still works, but documentation should be different. ### Other information: The issue appears to be brought on because the `ListCommand` class can't serialize what `root` is when generating the documentation: ```python lass ListCommand(RootModel, _Command): """Use so that commands with __root__: Sequence[Command] behave like a list.""" root: Sequence[Any] def __iter__(self): return iter(self.root) def __getitem__(self, item): return self.root[item] def __len__(self): return len(self.root) model_config = ConfigDict(arbitrary_types_allowed=True, populate_by_name=True) ``` This means that any emulated models built using it are raising errors when trying to parse the documentation. I'm not familiar enough with `pydantic` to understand how to fix this, so I'm removing them from the docs to see if that fixes things.
- Loading branch information