Skip to content

Commit d0986bc

Browse files
fix(nodes): remove Optionals on ImageOutputs
1 parent a4dc29f commit d0986bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

invokeai/app/invocations/image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ class ImageOutput(BaseInvocationOutput):
3333
# fmt: off
3434
type: Literal["image"] = "image"
3535
image: ImageField = Field(default=None, description="The output image")
36-
width: Optional[int] = Field(default=None, description="The width of the image in pixels")
37-
height: Optional[int] = Field(default=None, description="The height of the image in pixels")
36+
width: int = Field(description="The width of the image in pixels")
37+
height: int = Field(description="The height of the image in pixels")
3838
# fmt: on
3939

4040
class Config:

0 commit comments

Comments
 (0)