diff --git a/.gitignore b/.gitignore index f25e162..fae0012 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,6 @@ vendor node_modules my_env venv +.DS_Store +.mypy_cache +.ruff_cache diff --git a/samples/convert_file/convert_file.py b/samples/convert_file/convert_file.py index fd8b6cf..6c5c212 100755 --- a/samples/convert_file/convert_file.py +++ b/samples/convert_file/convert_file.py @@ -41,6 +41,9 @@ if isinstance(fc.outputs, Unset): raise Exception("Expected outputs to be set") +if fc.outputs is None: + raise Exception("Expected outputs to be set") + outputs: Dict[str, Base64Data] = fc.outputs if len(outputs) != 1: diff --git a/samples/file_center_of_mass/file_center_of_mass.py b/samples/file_center_of_mass/file_center_of_mass.py index 5d381ee..1c90b62 100755 --- a/samples/file_center_of_mass/file_center_of_mass.py +++ b/samples/file_center_of_mass/file_center_of_mass.py @@ -33,7 +33,7 @@ partInfo = { "title": "output.json", - "center_of_mass": fm.center_of_mass, + "center_of_mass": fm.center_of_mass.model_dump(), } # LITTERBOX-START-NON-EDITABLE-SECTION diff --git a/tutorials/conversion_obj_step/conversion_obj_step.py b/tutorials/conversion_obj_step/conversion_obj_step.py index 0591796..fe16621 100755 --- a/tutorials/conversion_obj_step/conversion_obj_step.py +++ b/tutorials/conversion_obj_step/conversion_obj_step.py @@ -40,6 +40,9 @@ if isinstance(fc.outputs, Unset): raise Exception("Expected outputs to be set") +if fc.outputs is None: + raise Exception("Expected outputs to be set") + outputs: Dict[str, Base64Data] = fc.outputs if len(outputs) != 1: diff --git a/tutorials/conversion_obj_stl/conversion_obj_stl.py b/tutorials/conversion_obj_stl/conversion_obj_stl.py index fb83a45..87cd167 100755 --- a/tutorials/conversion_obj_stl/conversion_obj_stl.py +++ b/tutorials/conversion_obj_stl/conversion_obj_stl.py @@ -41,6 +41,9 @@ if isinstance(fc.outputs, Unset): raise Exception("Expected outputs to be set") +if fc.outputs is None: + raise Exception("Expected outputs to be set") + outputs: Dict[str, Base64Data] = fc.outputs if len(outputs) != 1: diff --git a/tutorials/getting_started/getting_started.py b/tutorials/getting_started/getting_started.py index e23650f..d3a2fcc 100755 --- a/tutorials/getting_started/getting_started.py +++ b/tutorials/getting_started/getting_started.py @@ -42,6 +42,9 @@ if isinstance(fc.outputs, Unset): raise Exception("Expected outputs to be set") +if fc.outputs is None: + raise Exception("Expected outputs to be set") + outputs: Dict[str, Base64Data] = fc.outputs if len(outputs) != 1: